mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-30 18:35:54 +02:00
Changing &vec[0] to vec.data(), what 9804 missed
This commit is contained in:
@@ -154,8 +154,8 @@ BOOST_AUTO_TEST_CASE(bloom_match)
|
||||
COutPoint prevOutPoint(uint256S("0x90c122d70786e899529d71dbeba91ba216982fb6ba58f3bdaab65e73b7e9260b"), 0);
|
||||
{
|
||||
std::vector<unsigned char> data(32 + sizeof(unsigned int));
|
||||
memcpy(&data[0], prevOutPoint.hash.begin(), 32);
|
||||
memcpy(&data[32], &prevOutPoint.n, sizeof(unsigned int));
|
||||
memcpy(data.data(), prevOutPoint.hash.begin(), 32);
|
||||
memcpy(data.data()+32, &prevOutPoint.n, sizeof(unsigned int));
|
||||
filter.insert(data);
|
||||
}
|
||||
BOOST_CHECK_MESSAGE(filter.IsRelevantAndUpdate(tx), "Simple Bloom filter didn't match manually serialized COutPoint");
|
||||
|
||||
Reference in New Issue
Block a user