mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
bench: Update span-serialize comment
Commit faecca9a85
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
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue