mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Instead of having CBlockIndex's live on the heap, which requires manual
memory management, have them be owned by m_block_index. This means that
they will live and die with BlockManager.
A change to BlockManager::LookupBlockIndex:
- Previously, it was a const member function returning a non-const CBlockIndex*
- Now, there's are const and non-const versions of
BlockManager::LookupBlockIndex returning a CBlockIndex with the same
const-ness as the member function:
(e.g. const CBlockIndex* LookupBlockIndex(...) const)
See next commit for some weirdness that this eliminates.
The range based for-loops are modernize (using auto + destructuring) in
a future commit.
|
||
|---|---|---|
| .. | ||
| fuzz | ||
| coinselector_tests.cpp | ||
| db_tests.cpp | ||
| init_test_fixture.cpp | ||
| init_test_fixture.h | ||
| init_tests.cpp | ||
| ismine_tests.cpp | ||
| psbt_wallet_tests.cpp | ||
| scriptpubkeyman_tests.cpp | ||
| spend_tests.cpp | ||
| util.cpp | ||
| util.h | ||
| wallet_crypto_tests.cpp | ||
| wallet_test_fixture.cpp | ||
| wallet_test_fixture.h | ||
| wallet_tests.cpp | ||
| wallet_transaction_tests.cpp | ||
| walletdb_tests.cpp | ||