From 952d4650d3c8f80b9fcc732db9c10d4ea70895e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Wed, 22 Nov 2023 20:20:25 +0100 Subject: [PATCH] blockchaintest: Skip printing storage 0 values When dumping the result post state omit storage zero values. They should be interpreted as deleted from storage. --- test/blockchaintest/blockchaintest_runner.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/blockchaintest/blockchaintest_runner.cpp b/test/blockchaintest/blockchaintest_runner.cpp index 0699787253..257ab987ab 100644 --- a/test/blockchaintest/blockchaintest_runner.cpp +++ b/test/blockchaintest/blockchaintest_runner.cpp @@ -108,7 +108,10 @@ std::string print_state(const state::State& s) out << "\tstorage : " << "\n"; for (const auto& [s_key, val] : ordered_storage) - out << "\t\t" << s_key << " : " << hex0x(val.current) << "\n"; + { + if (val.current) // Skip 0 values. + out << "\t\t" << s_key << " : " << hex0x(val.current) << "\n"; + } } }