diff options
| author | MarcoFalke <[email protected]> | 2019-12-17 07:11:44 +0700 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-12-23 06:12:10 +0700 |
| commit | faa92a2297b4a6aebdd58d1818c428f1c0346078 (patch) | |
| tree | 37b1d8636d450c7887d36ce67074fdb5e97fb4b4 /src/test/util/setup_common.cpp | |
| parent | test: Properly document blockinfo size in miner_tests (diff) | |
| download | discoin-faa92a2297b4a6aebdd58d1818c428f1c0346078.tar.xz discoin-faa92a2297b4a6aebdd58d1818c428f1c0346078.zip | |
rpc: Remove mempool global from miner
Diffstat (limited to 'src/test/util/setup_common.cpp')
| -rw-r--r-- | src/test/util/setup_common.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp index 86c355fdc..3bdf3485f 100644 --- a/src/test/util/setup_common.cpp +++ b/src/test/util/setup_common.cpp @@ -175,7 +175,7 @@ TestChain100Setup::TestChain100Setup() CBlock TestChain100Setup::CreateAndProcessBlock(const std::vector<CMutableTransaction>& txns, const CScript& scriptPubKey) { const CChainParams& chainparams = Params(); - std::unique_ptr<CBlockTemplate> pblocktemplate = BlockAssembler(chainparams).CreateNewBlock(scriptPubKey); + std::unique_ptr<CBlockTemplate> pblocktemplate = BlockAssembler(*m_node.mempool, chainparams).CreateNewBlock(scriptPubKey); CBlock& block = pblocktemplate->block; // Replace mempool-selected txns with just coinbase plus passed-in txns: |