Skip to content

Commit

Permalink
fix(store/streaming): reset BlockMetadata between blocks (#18104)
Browse files Browse the repository at this point in the history
Co-authored-by: Julien Robert <[email protected]>
Co-authored-by: marbar3778 <[email protected]>
  • Loading branch information
3 people authored Oct 16, 2023
1 parent 3c0ab7e commit 4f89b57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions store/streaming/file/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ func (fss *StreamingService) doListenCommit(ctx context.Context, res abci.Respon
if err := writeLengthPrefixedFile(path.Join(fss.writeDir, metaFileName), bz, fss.fsync); err != nil {
return err
}
// reset block metadata for next block so that deliverTx does not accumulate between blocks
fss.blockMetadata = types.BlockMetadata{}
}

var buf bytes.Buffer
Expand Down

0 comments on commit 4f89b57

Please sign in to comment.