-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge bugfix-2024-apr in release-v07
- Loading branch information
Showing
11 changed files
with
244 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM linuxmintd/mint22-amd64 | ||
MAINTAINER Cryp Toon <[email protected]> | ||
|
||
WORKDIR /code | ||
|
||
RUN apt-get update && apt-get upgrade -y | ||
RUN apt-get install -y \ | ||
software-properties-common git \ | ||
build-essential python3-dev libgmp3-dev python3-pip python3.12-venv | ||
|
||
ENV TZ=Europe/Brussels | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
RUN apt-get install -y postgresql postgresql-contrib mariadb-server libpq-dev pkg-config default-libmysqlclient-dev | ||
RUN apt-get clean | ||
|
||
RUN git clone https://github.com/1200wd/bitcoinlib.git | ||
|
||
WORKDIR /code/bitcoinlib | ||
RUN python3 -m venv /opt/venv | ||
RUN /opt/venv/bin/python3 -m pip install .[dev] | ||
|
||
CMD /opt/venv/bin/python3 -m unittest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
Frequently Asked Questions | ||
========================== | ||
|
||
Can I use Bitcoinlib on my system? | ||
---------------------------------- | ||
|
||
BitcoinLib is platform independent and should run on your system. | ||
Bitcoinlib is mainly developed on Ubuntu linux and runs unittests on every commit on Ubuntu and Windows. | ||
Dockerfiles are available for Alpine, Kali and Fedora. You can find all dockerfiles on https://github.com/1200wd/bitcoinlib/tree/master/docker | ||
|
||
I run into an error 'x' when installing Bitcoinlib | ||
-------------------------------------------------- | ||
|
||
1. Check the `installation page <manuals.install.html>`_ and see if you have installed all the requirements. | ||
2. Install the required packages one-by-one using pip install, and see if you get any specific errors. | ||
3. Check for help in `Github Discussions <https://github.com/1200wd/bitcoinlib/discussions>`_. | ||
4. See if you find any known `issue <https://github.com/1200wd/bitcoinlib/issues>`_. | ||
5. If it doesn't work out, do not hesitate to ask you question in the github discussions or post an issue! | ||
|
||
Does Bitcoinlib support 'x'-coin | ||
-------------------------------- | ||
|
||
Bitcoinlib main focus is on Bitcoin. But besides Bitcoin it supports Litecoin and Dogecoin. For testing | ||
it supports Bitcoin testnet3, Bitcoin regtest, Litecoin testnet and Dogecoin testnet. | ||
|
||
Support for Dash, Bitcoin Cash and Bitcoin SV has been dropped. | ||
|
||
There are currently no plans to support other coins. Main problem with supporting new coins is the lack of | ||
service provides with a working and stable API. | ||
|
||
My wallet transactions are not (correctly) updating! | ||
---------------------------------------------------- | ||
|
||
Most likely cause is a problem with a specific service provider. | ||
|
||
Please set log level to 'debug' and check the logs in bitcoinlib.log to see if you can pin down the specific error. | ||
You could then disable the provider and post the `issue <https://github.com/1200wd/bitcoinlib/issues>`_. | ||
|
||
To avoid these kind of errors it is adviced to run your local `Bcoin node <manuals.setup-bcoin.html>`_. | ||
With a local Bcoin node you do not depend on external Service providers which increases reliability, security, speed | ||
and privacy. | ||
|
||
Can I use Bitcoinlib with another database besides SQLite? | ||
---------------------------------------------------------- | ||
|
||
Yes, the library can also work with PostgreSQL or MySQL / MariaDB databases. | ||
For more information see: `Databases <manuals.databases.html>`_. | ||
|
||
I found a bug! | ||
-------------- | ||
|
||
Please help out project and post your `issue <https://github.com/1200wd/bitcoinlib/issues>`_ on Github. | ||
Try to include all code and data so we can reproduce and solve the issue. | ||
|
||
I have another question | ||
----------------------- | ||
|
||
Maybe your question already has an answer om `Github Discussions <https://github.com/1200wd/bitcoinlib/discussions>`_. | ||
Or search for an answer is this `documentation <https://bitcoinlib.readthedocs.io/en/latest/>`_. | ||
|
||
If that does not answer your question, please post your question on on the | ||
`Github Discussions Q&A <https://github.com/1200wd/bitcoinlib/discussions/categories/q-a>`_. | ||
|
||
|
||
|
||
.. | ||
My transaction is not confirming | ||
I have imported a private key but address from other wallet does not match Bitcoinlib's address | ||
Is Bitcoinlib secure? | ||
Donations? | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
How to connect Bitcoinlib to a Bcoin node | ||
========================================= | ||
|
||
Bcoin is a full bitcoin node implementation, which can be used to parse the blockchain, send transactions and run a | ||
wallet. With a Bcoin node you can retrieve transaction and utxo information for specific addresses, this is not easily | ||
possible with a `Bitcoind <manuals.setup-bitcoind-connection.html>`_ node. So if you want to use Bitcoinlib with a | ||
wallet and not be dependant on external providers the best option is to run a local Bcoin node. | ||
|
||
|
||
Install Bcoin node | ||
------------------ | ||
|
||
You can find some instructions on how to install a bcoin node on https://coineva.com/install-bcoin-node-ubuntu.html. | ||
|
||
There are also some Docker images available. We have created a Docker image with the most optimal settings for | ||
bitcoinlib. You can install them with the following command. | ||
|
||
.. code-block:: bash | ||
docker pull blocksmurfer/bcoin | ||
Use Bcoin node with Bitcoinlib | ||
------------------------------ | ||
|
||
To use Bcoin with bitcoinlib add the credentials to the providers.json configuration file in the .bitcoinlib directory. | ||
|
||
.. code-block:: text | ||
"bcoin": { | ||
"provider": "bcoin", | ||
"network": "bitcoin", | ||
"client_class": "BcoinClient", | ||
"provider_coin_id": "", | ||
"url": "https://user:pass@localhost:8332/", | ||
"api_key": "", | ||
"priority": 20, | ||
"denominator": 100000000, | ||
"network_overrides": null | ||
}, | ||
You can increase the priority so the Service object always connects to the Bcoin node first. |
Oops, something went wrong.