testmempoolaccept: feed genesis hash into sighash computation

This commit is contained in:
Andrew Poelstra 2023-05-04 20:30:06 +00:00
parent ee18b6b038
commit ccffeba3b2
No known key found for this signature in database
GPG key ID: C588D63CE41B97C1

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