Skip to content

Commit ffff4a2

Browse files
author
MarcoFalke
committed
bench: Update span-serialize comment
Commit faecca9 changed the type of block413567 from vector to span, but forgot to update the comment. Do it now.
1 parent fa4d6ec commit ffff4a2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/bench/load_external.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ static void LoadExternalBlockFile(benchmark::Bench& bench)
4444
auto params{testing_setup->m_node.chainman->GetParams()};
4545
ss << params.MessageStart();
4646
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.
47+
// Use span-serialization to avoid writing the size first.
4948
ss << std::span{benchmark::data::block413567};
5049

5150
// Create the test file.

0 commit comments

Comments
 (0)