Merge pull request #1239 from apoelstra/2023-05--fix-testmempoolaccept

testmempoolaccept: feed genesis hash into sighash computation
This commit is contained in:
James Dorfman 2023-05-05 03:02:40 -04:00 committed by GitHub
commit de942511a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");