aboutsummaryrefslogtreecommitdiff
path: root/src/blockencodings.h
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2022-05-16 18:21:15 +0100
committerJohn Newbery <john@johnnewbery.com>2022-05-17 10:37:10 +0100
commitc65bf50b44a38bc55224d8967e0df7af60ea4f1b (patch)
treea6fa0a1e4b6336c4de3050b0f361a74babb9313d /src/blockencodings.h
parent6b87fa540c407d167535561ac25e3225bf76d6cc (diff)
Remove fUseWTXID parameter from CBlockHeaderAndShortTxIDs constructor
All uses of CBlockHeaderAndShortTxIDs in the product code are constructed with fUseWTXID=true, so remove the parameter. There is one use of the CBlockHeaderAndShortTxIDs constructor with fUseWTXID=false in the unit tests. This is used to construct a CBlockHeaderAndShortTxIDs for a block with only the coinbase transaction, so setting fUseWTXID to true or false makes no difference. Suggested in https://github.com/bitcoin/bitcoin/pull/20799#pullrequestreview-963480278
Diffstat (limited to 'src/blockencodings.h')
-rw-r--r--src/blockencodings.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockencodings.h b/src/blockencodings.h
index 326db1b4a7..67c4e57156 100644
--- a/src/blockencodings.h
+++ b/src/blockencodings.h
@@ -104,7 +104,7 @@ public:
// Dummy for deserialization
CBlockHeaderAndShortTxIDs() {}
- CBlockHeaderAndShortTxIDs(const CBlock& block, bool fUseWTXID);
+ CBlockHeaderAndShortTxIDs(const CBlock& block);
uint64_t GetShortID(const uint256& txhash) const;