Skip to content

Commit de94251

Browse files
authored
Merge pull request #1239 from apoelstra/2023-05--fix-testmempoolaccept
testmempoolaccept: feed genesis hash into sighash computation
2 parents ad12d31 + ccffeba commit de94251

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ PackageMempoolAcceptResult MemPoolAccept::AcceptMultipleTransactions(const std::
11721172
}
11731173

11741174
for (Workspace& ws : workspaces) {
1175-
PrecomputedTransactionData txdata;
1175+
PrecomputedTransactionData txdata(args.m_chainparams.HashGenesisBlock());
11761176
if (!PolicyScriptChecks(args, ws, txdata)) {
11771177
// Exit early to avoid doing pointless work. Update the failed tx result; the rest are unfinished.
11781178
package_state.Invalid(PackageValidationResult::PCKG_TX, "transaction failed");

0 commit comments

Comments
 (0)