build: fix issues from ASAN in CI

This commit is contained in:
Byron Hambly 2023-09-01 17:17:44 +02:00
parent 3911e7e2b3
commit 591749d9f1
No known key found for this signature in database
GPG key ID: DE8F6EA20A661697
2 changed files with 2 additions and 2 deletions

View file

@ -569,7 +569,7 @@ private:
// All the intermediate state that gets passed between the various levels
// of checking a given transaction.
struct Workspace {
explicit Workspace(const CTransactionRef& ptx) : m_ptx(ptx), m_hash(ptx->GetHash()) {}
// explicit Workspace(const CTransactionRef& ptx) : m_ptx(ptx), m_hash(ptx->GetHash()) {} // ELEMENTS: unused since we need the genesis block hash
explicit Workspace(const CTransactionRef& ptx, const uint256& hash_genesis_block) : m_ptx(ptx), m_hash(ptx->GetHash()), m_precomputed_txdata(hash_genesis_block) {} // ELEMENTS
/** Txids of mempool transactions that this transaction directly conflicts with. */
std::set<uint256> m_conflicts;