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:
MarcoFalke 2025-02-04 22:44:49 +01:00
parent fa4d6ec97b
commit ffff4a293a
No known key found for this signature in database

View File

@ -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.