mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Fix finalizecompactblock filling in more found txs from mempool
This commit is contained in:
parent
81fd79ab94
commit
cb90cdb7bf
1 changed files with 3 additions and 3 deletions
|
|
@ -1376,9 +1376,9 @@ UniValue finalizecompactblock(const JSONRPCRequest& request)
|
|||
// Make mega-list
|
||||
found.insert(found.end(), transactions.txn.begin(), transactions.txn.end());
|
||||
|
||||
// Now construct the final block!
|
||||
LOCK(mempool.cs);
|
||||
PartiallyDownloadedBlock partialBlock(&mempool);
|
||||
// Now construct the final block! (use dummy mempool here, otherwise reconstruction may fail)
|
||||
CTxMemPool dummy_pool;
|
||||
PartiallyDownloadedBlock partialBlock(&dummy_pool);
|
||||
|
||||
const std::vector<std::pair<uint256, CTransactionRef>> dummy;
|
||||
std::shared_ptr<CBlock> pblock = std::make_shared<CBlock>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue