0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-03-11 15:56:58 -04:00
bitcoin-core/src/qt/test
MarcoFalke ae6943620a
Merge #17407: node: Add reference to mempool in NodeContext
fa538813b1 scripted-diff: Replace ::mempool with m_node.mempool in tests (MarcoFalke)
8888ad02e2 test: Replace recursive lock with locking annotations (MarcoFalke)
fac07f2038 node: Add reference to mempool in NodeContext (MarcoFalke)

Pull request description:

  This is the first step toward making the mempool a global that is not initialized before main.

  #### Motivation

  Currently the mempool is a global that is initialized before the `main` function. This is confusing and easy to get wrong. E.g. the mempool constructor queries state that has not been initialized, like randomness (fixed), or command line arguments (not an issue last time I checked). Also without having the chainstate (chain tip) initialized first, it doesn't make conceptually sense to have a mempool, since the mempool builds txs on top of the utxo set (chain tip).

  Finally, in the future someone might want to run a consensus-only full node (`-nowallet -noblockfilter -no... -nomempool` command line options) that only verifies blocks and updates the utxo set.

  This is conceptually the same change that has already been done for the connection manager `CConnman`.

ACKs for top commit:
  jnewbery:
    utACK fa538813b1
  ariard:
    Tested ACK fa53881.

Tree-SHA512: 2c446a8a51476354aad7126c2b833500d36b24490caa94f847b2bdc622054de0dae28980f23e3d91b1b492dc32931656d98dbd019af9e4e58f2f8c5375aac694
2019-11-21 10:18:02 -05:00
..
addressbooktests.cpp scripted-diff: test: Move setup_common to test library 2019-11-06 11:56:41 -05:00
addressbooktests.h Pass NodeContext, ConnMan, BanMan references more places 2019-10-28 10:30:51 -04:00
apptests.cpp scripted-diff: test: Move setup_common to test library 2019-11-06 11:56:41 -05:00
apptests.h Add BitcoinApplication & RPCConsole tests 2019-01-04 06:31:07 -05:00
compattests.cpp Remove BIP70 Support 2019-10-24 16:01:43 -04:00
compattests.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
Makefile build: add stub makefiles for easier subdir builds 2014-06-05 16:05:43 -04:00
rpcnestedtests.cpp node: Add reference to mempool in NodeContext 2019-11-15 13:40:00 -05:00
rpcnestedtests.h Pass NodeContext, ConnMan, BanMan references more places 2019-10-28 10:30:51 -04:00
test_main.cpp scripted-diff: test: Move setup_common to test library 2019-11-06 11:56:41 -05:00
uritests.cpp Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
uritests.h Bump copyright headers to 2015 2015-12-13 18:08:39 +01:00
util.cpp Revert "Make qt wallet test compatible with qt4" 2018-10-20 05:34:53 -03:00
util.h util.h: explicitly include required QString header 2018-11-13 16:49:34 +09:00
wallettests.cpp Merge #15931: Remove GetDepthInMainChain dependency on locked chain interface 2019-11-08 23:23:14 +13:00
wallettests.h Pass NodeContext, ConnMan, BanMan references more places 2019-10-28 10:30:51 -04:00