We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa4d6ec commit ffff4a2Copy full SHA for ffff4a2
src/bench/load_external.cpp
@@ -44,8 +44,7 @@ static void LoadExternalBlockFile(benchmark::Bench& bench)
44
auto params{testing_setup->m_node.chainman->GetParams()};
45
ss << params.MessageStart();
46
ss << static_cast<uint32_t>(benchmark::data::block413567.size());
47
- // We can't use the streaming serialization (ss << benchmark::data::block413567)
48
- // because that first writes a compact size.
+ // Use span-serialization to avoid writing the size first.
49
ss << std::span{benchmark::data::block413567};
50
51
// Create the test file.
0 commit comments