bitcoin/src/rpc
MarcoFalke 17e14ac92f
Merge #17781: rpc: Remove mempool global from miner
faa92a2297 rpc: Remove mempool global from miner (MarcoFalke)
6666ef13f1 test: Properly document blockinfo size in miner_tests (MarcoFalke)

Pull request description:

  The miner needs read-only access to the mempool. Instead of using the mutable global `::mempool`, keep a immutable reference to a mempool that is passed to the miner. Apart from the obvious benefits of removing a global and making things immutable, this might also simplify testing with multiple mempools.

ACKs for top commit:
  promag:
    ACK faa92a2297.
  fjahr:
    ACK faa92a2297
  jnewbery:
    Code review ACK faa92a2297

Tree-SHA512: c44027b5d2217a724791166f3f3112c45110ac1dbb37bdae27148a0657e0d1a1d043b0d24e49fd45465ec014224d1b7eb15c92a33069ad883fa8ffeadc24735b
2020-01-02 17:50:56 -05:00
..
blockchain.cpp Merge #17750: util: change GetWarnings parameter to bool 2019-12-16 16:07:20 -05:00
blockchain.h scripted-diff: Bump copyright of files changed in 2019 2019-12-30 10:42:20 +13:00
client.cpp scripted-diff: Bump copyright of files changed in 2019 2019-12-30 10:42:20 +13:00
client.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
mining.cpp Merge #17781: rpc: Remove mempool global from miner 2020-01-02 17:50:56 -05:00
misc.cpp scripted-diff: Bump copyright of files changed in 2019 2019-12-30 10:42:20 +13:00
net.cpp util: change GetWarnings parameter to bool 2019-12-15 13:24:48 -03:00
protocol.h scripted-diff: Bump copyright of files changed in 2019 2019-12-30 10:42:20 +13:00
rawtransaction.cpp Merge #17564: rpc: Use mempool from node context instead of global 2019-12-16 16:05:06 -05:00
rawtransaction_util.cpp Accumulate result UniValue in SignTransaction 2019-11-18 15:28:15 -05:00
rawtransaction_util.h scripted-diff: Bump copyright of files changed in 2019 2019-12-30 10:42:20 +13:00
register.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
request.cpp rpc: migrate JSONRPCRequest functionality into request.cpp 2019-07-05 11:22:02 +09:00
request.h rpc: migrate JSONRPCRequest functionality into request.cpp 2019-07-05 11:22:02 +09:00
server.cpp Remove unused includes 2019-10-15 22:56:43 +00:00
server.h scripted-diff: Bump copyright of files changed in 2019 2019-12-30 10:42:20 +13:00
util.cpp qa: unify unix epoch time descriptions 2019-12-13 02:02:29 +01:00
util.h qa: unify unix epoch time descriptions 2019-12-13 02:02:29 +01:00