Skip to content

Commit

Permalink
Merge pull request #1239 from apoelstra/2023-05--fix-testmempoolaccept
Browse files Browse the repository at this point in the history
testmempoolaccept: feed genesis hash into sighash computation
  • Loading branch information
jamesdorfman authored May 5, 2023
2 parents ad12d31 + ccffeba commit de94251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit de94251

Please sign in to comment.