diff --git a/src/bench/load_external.cpp b/src/bench/load_external.cpp index d875619b8fc..18f21be4c48 100644 --- a/src/bench/load_external.cpp +++ b/src/bench/load_external.cpp @@ -44,8 +44,7 @@ static void LoadExternalBlockFile(benchmark::Bench& bench) auto params{testing_setup->m_node.chainman->GetParams()}; ss << params.MessageStart(); ss << static_cast(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.