From ffff4a293ad878494e12f8f00108cc99ee2b713e Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Tue, 4 Feb 2025 22:44:49 +0100 Subject: [PATCH] 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. --- src/bench/load_external.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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.