aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.h
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2023-11-27 16:29:59 +0000
committerglozow <gloriajzhao@gmail.com>2024-01-16 14:20:33 +0000
commit158623b8e0726dff7eae4288138f1710e727db9c (patch)
treece03ea05579138e8f2aa5a8241a73703a9df51d6 /src/txmempool.h
parent60f677375e52832536a599afae3226f8e2155d88 (diff)
downloadbitcoin-158623b8e0726dff7eae4288138f1710e727db9c.tar.xz
[refactor] change Workspace::m_conflicts and adjacent funcs/structs to use Txid
It's preferable to use type-safe transaction identifiers to avoid confusing txid and wtxid. The next commit will add a reference to this set; we use this opportunity to change it to Txid ahead of time instead of adding new uses of uint256.
Diffstat (limited to 'src/txmempool.h')
-rw-r--r--src/txmempool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.h b/src/txmempool.h
index bac7a445d6..591aee0156 100644
--- a/src/txmempool.h
+++ b/src/txmempool.h
@@ -522,7 +522,7 @@ public:
/** Translate a set of hashes into a set of pool iterators to avoid repeated lookups.
* Does not require that all of the hashes correspond to actual transactions in the mempool,
* only returns the ones that exist. */
- setEntries GetIterSet(const std::set<uint256>& hashes) const EXCLUSIVE_LOCKS_REQUIRED(cs);
+ setEntries GetIterSet(const std::set<Txid>& hashes) const EXCLUSIVE_LOCKS_REQUIRED(cs);
/** Translate a list of hashes into a list of mempool iterators to avoid repeated lookups.
* The nth element in txids becomes the nth element in the returned vector. If any of the txids