We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7b77b7 commit 8bbd5a3Copy full SHA for 8bbd5a3
src/rpc/mining.cpp
@@ -1376,9 +1376,9 @@ UniValue finalizecompactblock(const JSONRPCRequest& request)
1376
// Make mega-list
1377
found.insert(found.end(), transactions.txn.begin(), transactions.txn.end());
1378
1379
- // Now construct the final block!
1380
- LOCK(mempool.cs);
1381
- PartiallyDownloadedBlock partialBlock(&mempool);
+ // Now construct the final block! (use dummy mempool here, otherwise reconstruction may fail)
+ CTxMemPool dummy_pool;
+ PartiallyDownloadedBlock partialBlock(&dummy_pool);
1382
1383
const std::vector<std::pair<uint256, CTransactionRef>> dummy;
1384
std::shared_ptr<CBlock> pblock = std::make_shared<CBlock>();
0 commit comments