mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Merge 60f142e395 into merged_master (Bitcoin PR bitcoin/bitcoin#26531)
This commit is contained in:
commit
b49bfac365
7 changed files with 845 additions and 0 deletions
|
|
@ -1173,6 +1173,15 @@ bool MemPoolAccept::Finalize(const ATMPArgs& args, Workspace& ws)
|
|||
hash.ToString(),
|
||||
FormatMoney(ws.m_modified_fees - ws.m_conflicting_fees),
|
||||
(int)entry->GetTxSize() - (int)ws.m_conflicting_size);
|
||||
TRACE7(mempool, replaced,
|
||||
it->GetTx().GetHash().data(),
|
||||
it->GetTxSize(),
|
||||
it->GetFee(),
|
||||
std::chrono::duration_cast<std::chrono::duration<std::uint64_t>>(it->GetTime()).count(),
|
||||
hash.data(),
|
||||
entry->GetTxSize(),
|
||||
entry->GetFee()
|
||||
);
|
||||
ws.m_replaced_transactions.push_back(it->GetSharedTx());
|
||||
}
|
||||
m_pool.RemoveStaged(ws.m_all_conflicting, false, MemPoolRemovalReason::REPLACED);
|
||||
|
|
@ -1585,6 +1594,10 @@ MempoolAcceptResult AcceptToMemoryPool(Chainstate& active_chainstate, const CTra
|
|||
|
||||
for (const COutPoint& hashTx : coins_to_uncache)
|
||||
active_chainstate.CoinsTip().Uncache(hashTx);
|
||||
TRACE2(mempool, rejected,
|
||||
tx->GetHash().data(),
|
||||
result.m_state.GetRejectReason().c_str()
|
||||
);
|
||||
}
|
||||
// After we've (potentially) uncached entries, ensure our coins cache is still within its size limits
|
||||
BlockValidationState state_dummy;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue