From aee1c1d59f5533c9a604e1534711736d78803b05 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Thu, 19 Oct 2023 13:59:59 -0500 Subject: [PATCH] GH-1677 Make sure we append to index file --- libraries/state_history/include/eosio/state_history/log.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/state_history/include/eosio/state_history/log.hpp b/libraries/state_history/include/eosio/state_history/log.hpp index b1ed4f4926..d3765080d5 100644 --- a/libraries/state_history/include/eosio/state_history/log.hpp +++ b/libraries/state_history/include/eosio/state_history/log.hpp @@ -541,6 +541,7 @@ class state_history_log { "wrote payload with incorrect size to ${name}.log", ("name", name)); fc::raw::pack(log, pos); + index.seek_end(0); fc::raw::pack(index, pos); if (_begin_block == _end_block) _index_begin_block = _begin_block = block_num;