mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 23:29:12 +01:00
Use DataStream where possible
This commit is contained in:
@@ -60,7 +60,7 @@ void CBloomFilter::insert(Span<const unsigned char> vKey)
|
||||
|
||||
void CBloomFilter::insert(const COutPoint& outpoint)
|
||||
{
|
||||
CDataStream stream(SER_NETWORK, PROTOCOL_VERSION);
|
||||
DataStream stream{};
|
||||
stream << outpoint;
|
||||
insert(MakeUCharSpan(stream));
|
||||
}
|
||||
@@ -81,7 +81,7 @@ bool CBloomFilter::contains(Span<const unsigned char> vKey) const
|
||||
|
||||
bool CBloomFilter::contains(const COutPoint& outpoint) const
|
||||
{
|
||||
CDataStream stream(SER_NETWORK, PROTOCOL_VERSION);
|
||||
DataStream stream{};
|
||||
stream << outpoint;
|
||||
return contains(MakeUCharSpan(stream));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user