d51fbab4b3
wallet, test: Be able to always swap BDB endianness (Ava Chow)0b753156ce
test: Test bdb_ro dump of wallet without reset LSNs (Ava Chow)c1984f1282
test: Test dumping dbs with overflow pages (Ava Chow)fd7b16e391
test: Test dumps of other endian BDB files (Ava Chow)6ace3e953f
bdb: Be able to make byteswapped databases (Ava Chow)d9878903fb
Error if LSNs are not reset (Ava Chow)4d7a3ae78e
Berkeley RO Database fuzz test (TheCharlatan)3568dce9e9
tests: Add BerkeleyRO to db prefix tests (Ava Chow)70cfbfdadf
wallettool: Optionally use BERKELEY_RO as format when dumping BDB wallets (Ava Chow)dd57713f6e
Add MakeBerkeleyRODatabase (Ava Chow)6e50bee67d
Implement handling of other endianness in BerkeleyRODatabase (Ava Chow)cdd61c9cc1
wallet: implement independent BDB deserializer in BerkeleyRODatabase (Ava Chow)ecba230979
wallet: implement BerkeleyRODatabase::Backup (Ava Chow)0c8e728476
wallet: implement BerkeleyROBatch (Ava Chow)756ff9b478
wallet: add dummy BerkeleyRODatabase and BerkeleyROBatch classes (Ava Chow)ca18aea5c4
Add AutoFile::seek and tell (Ava Chow) Pull request description: Split from #26596 This PR adds `BerkeleyRODatabase` which is an independent implementation of a BDB file parser. It provides read only access to a BDB file, and can therefore be used as a read only database backend for wallets. This will be used for dumping legacy wallet records and migrating legacy wallets without the need for BDB itself. Wallettool's `dump` command is changed to use `BerkeleyRODatabase` instead of `BerkeleyDatabase` (and `CWallet` itself) to demonstrate that this parser works and to test it against the existing wallettool functional tests. ACKs for top commit: josibake: reACKd51fbab4b3
TheCharlatan: Re-ACKd51fbab4b3
furszy: reACKd51fbab4b3
laanwj: re-ACKd51fbab4b3
theStack: ACKd51fbab4b3
Tree-SHA512: 1e7b97edf223b2974eed2e9eac1179fc82bb6359e0a66b7d2a0c8b9fa515eae9ea036f1edf7c76cdab2e75ad994962b134b41056ccfbc33b8d54f0859e86657b
Bitcoin Core integration/staging tree
For an immediately usable, binary version of the Bitcoin Core software, see https://bitcoincore.org/en/download/.
What is Bitcoin Core?
Bitcoin Core connects to the Bitcoin peer-to-peer network to download and fully validate blocks and transactions. It also includes a wallet and graphical user interface, which can be optionally built.
Further information about Bitcoin Core is available in the doc folder.
License
Bitcoin Core is released under the terms of the MIT license. See COPYING for more information or see https://opensource.org/licenses/MIT.
Development Process
The master
branch is regularly built (see doc/build-*.md
for instructions) and tested, but it is not guaranteed to be
completely stable. Tags are created
regularly from release branches to indicate new official, stable release versions of Bitcoin Core.
The https://github.com/bitcoin-core/gui repository is used exclusively for the development of the GUI. Its master branch is identical in all monotree repositories. Release branches and tags do not exist, so please do not fork that repository unless it is for development reasons.
The contribution workflow is described in CONTRIBUTING.md and useful hints for developers can be found in doc/developer-notes.md.
Testing
Testing and code review is the bottleneck for development; we get more pull requests than we can review and test on short notice. Please be patient and help out by testing other people's pull requests, and remember this is a security-critical project where any mistake might cost people lots of money.
Automated Testing
Developers are strongly encouraged to write unit tests for new code, and to
submit new unit tests for old code. Unit tests can be compiled and run
(assuming they weren't disabled in configure) with: make check
. Further details on running
and extending unit tests can be found in /src/test/README.md.
There are also regression and integration tests, written
in Python.
These tests can be run (if the test dependencies are installed) with: test/functional/test_runner.py
The CI (Continuous Integration) systems make sure that every pull request is built for Windows, Linux, and macOS, and that unit/sanity tests are run automatically.
Manual Quality Assurance (QA) Testing
Changes should be tested by somebody other than the developer who wrote the code. This is especially important for large or high-risk changes. It is useful to add a test plan to the pull request description if testing the changes is not straightforward.
Translations
Changes to translations as well as new translations can be submitted to Bitcoin Core's Transifex page.
Translations are periodically pulled from Transifex and merged into the git repository. See the translation process for details on how this works.
Important: We do not accept translation changes as GitHub pull requests because the next pull from Transifex would automatically overwrite them again.