mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Merge de942511a6 into merged_master (Elements PR #1239)
bitcoin/bitcoin#23381 refactored PolicyScriptChecks to store the precomputed txdata in the workspace, so I have added the genesis hash to the transform of the workspaces in AcceptMultipleTransactions. I don't think there was a specific test for this, so during review it may be worth checking this thoroughly. We also need a test to cover this.
This commit is contained in:
commit
88d211dbfd
1 changed files with 1 additions and 1 deletions
|
|
@ -1284,7 +1284,7 @@ PackageMempoolAcceptResult MemPoolAccept::AcceptMultipleTransactions(const std::
|
|||
std::vector<Workspace> workspaces{};
|
||||
workspaces.reserve(txns.size());
|
||||
std::transform(txns.cbegin(), txns.cend(), std::back_inserter(workspaces),
|
||||
[](const auto& tx) { return Workspace(tx); });
|
||||
[&](const auto& tx) { return Workspace(tx, args.m_chainparams.HashGenesisBlock()); });
|
||||
std::map<const uint256, const MempoolAcceptResult> results;
|
||||
|
||||
LOCK(m_pool.cs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue