mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-17 21:32:00 +01:00
bench: Update span-serialize comment
Commit faecca9a85c1c1917d024f55cca34d19cc94f3b9 changed the type of block413567 from vector to span, but forgot to update the comment. Do it now.
This commit is contained in:
parent
fa4d6ec97b
commit
ffff4a293a
@ -44,8 +44,7 @@ static void LoadExternalBlockFile(benchmark::Bench& bench)
|
||||
auto params{testing_setup->m_node.chainman->GetParams()};
|
||||
ss << params.MessageStart();
|
||||
ss << static_cast<uint32_t>(benchmark::data::block413567.size());
|
||||
// We can't use the streaming serialization (ss << benchmark::data::block413567)
|
||||
// because that first writes a compact size.
|
||||
// Use span-serialization to avoid writing the size first.
|
||||
ss << std::span{benchmark::data::block413567};
|
||||
|
||||
// Create the test file.
|
||||
|
Loading…
x
Reference in New Issue
Block a user