@@ -505,13 +505,13 @@ class MemPoolAccept
505505
506506 // Run the script checks using our policy flags. As this can be slow, we should
507507 // only invoke this on transactions that have otherwise passed policy checks.
508- bool PolicyScriptChecks (ATMPArgs& args, Workspace& ws, PrecomputedTransactionData& txdata) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
508+ bool PolicyScriptChecks (ATMPArgs& args, const Workspace& ws, PrecomputedTransactionData& txdata) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
509509
510510 // Re-run the script checks, using consensus flags, and try to cache the
511511 // result in the scriptcache. This should be done after
512512 // PolicyScriptChecks(). This requires that all inputs either be in our
513513 // utxo set or in the mempool.
514- bool ConsensusScriptChecks (ATMPArgs& args, Workspace& ws, PrecomputedTransactionData &txdata) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
514+ bool ConsensusScriptChecks (ATMPArgs& args, const Workspace& ws, PrecomputedTransactionData &txdata) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
515515
516516 // Try to add the transaction to the mempool, removing any conflicts first.
517517 // Returns true if the transaction is in the mempool after any size
@@ -921,7 +921,7 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws)
921921 return true ;
922922}
923923
924- bool MemPoolAccept::PolicyScriptChecks (ATMPArgs& args, Workspace& ws, PrecomputedTransactionData& txdata)
924+ bool MemPoolAccept::PolicyScriptChecks (ATMPArgs& args, const Workspace& ws, PrecomputedTransactionData& txdata)
925925{
926926 const CTransaction& tx = *ws.m_ptx ;
927927
@@ -948,7 +948,7 @@ bool MemPoolAccept::PolicyScriptChecks(ATMPArgs& args, Workspace& ws, Precompute
948948 return true ;
949949}
950950
951- bool MemPoolAccept::ConsensusScriptChecks (ATMPArgs& args, Workspace& ws, PrecomputedTransactionData& txdata)
951+ bool MemPoolAccept::ConsensusScriptChecks (ATMPArgs& args, const Workspace& ws, PrecomputedTransactionData& txdata)
952952{
953953 const CTransaction& tx = *ws.m_ptx ;
954954 const uint256& hash = ws.m_hash ;
0 commit comments