Skip to content

Commit

Permalink
Merge pull request AntelopeIO#1801 from AntelopeIO/AntelopeIOGH-1677-…
Browse files Browse the repository at this point in the history
…ship-fix-4.0

[4.0] SHiP: Make sure we append to index file
  • Loading branch information
heifner authored Oct 19, 2023
2 parents 39327d8 + aee1c1d commit dd4217f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dd4217f

Please sign in to comment.