mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Merge pull request #1239 from apoelstra/2023-05--fix-testmempoolaccept
testmempoolaccept: feed genesis hash into sighash computation
This commit is contained in:
commit
de942511a6
1 changed files with 1 additions and 1 deletions
|
|
@ -1172,7 +1172,7 @@ PackageMempoolAcceptResult MemPoolAccept::AcceptMultipleTransactions(const std::
|
|||
}
|
||||
|
||||
for (Workspace& ws : workspaces) {
|
||||
PrecomputedTransactionData txdata;
|
||||
PrecomputedTransactionData txdata(args.m_chainparams.HashGenesisBlock());
|
||||
if (!PolicyScriptChecks(args, ws, txdata)) {
|
||||
// Exit early to avoid doing pointless work. Update the failed tx result; the rest are unfinished.
|
||||
package_state.Invalid(PackageValidationResult::PCKG_TX, "transaction failed");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue