mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
refactor: Use Txid in CMerkleBlock
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <serialize.h>
|
||||
#include <uint256.h>
|
||||
|
||||
#include <set>
|
||||
#include <vector>
|
||||
|
||||
// Helper functions for serialization.
|
||||
@@ -144,7 +145,7 @@ public:
|
||||
CMerkleBlock(const CBlock& block, CBloomFilter& filter) : CMerkleBlock(block, &filter, nullptr) { }
|
||||
|
||||
// Create from a CBlock, matching the txids in the set
|
||||
CMerkleBlock(const CBlock& block, const std::set<uint256>& txids) : CMerkleBlock(block, nullptr, &txids) { }
|
||||
CMerkleBlock(const CBlock& block, const std::set<Txid>& txids) : CMerkleBlock{block, nullptr, &txids} {}
|
||||
|
||||
CMerkleBlock() {}
|
||||
|
||||
@@ -152,7 +153,7 @@ public:
|
||||
|
||||
private:
|
||||
// Combined constructor to consolidate code
|
||||
CMerkleBlock(const CBlock& block, CBloomFilter* filter, const std::set<uint256>* txids);
|
||||
CMerkleBlock(const CBlock& block, CBloomFilter* filter, const std::set<Txid>* txids);
|
||||
};
|
||||
|
||||
#endif // BITCOIN_MERKLEBLOCK_H
|
||||
|
||||
Reference in New Issue
Block a user