Skip to content

Commit 1023109

Browse files
authored
refactor: display block source in sync log (#3193)
* refactor: display block source in sync log * add cl
1 parent 9d7b1c2 commit 1023109

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
### Changes
1919

2020
- Subscribe to forced inclusion namespace events [#3146](https://github.com/evstack/ev-node/pull/3146)
21+
- Display block source in sync log [#3193](https://github.com/evstack/ev-node/pull/3193)
2122

2223
## v1.0.0
2324

@@ -35,10 +36,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3536
- Verify DA and P2P state on restart (prevent double-signing). [#3061](https://github.com/evstack/ev-node/pull/3061)
3637
- Node pruning support. [#2984](https://github.com/evstack/ev-node/pull/2984)
3738
- Two different sort of pruning implemented:
38-
_Classic pruning_ (`all`): prunes given `HEAD-n` blocks from the databases, including store metadatas.
39-
_Auto Storage Optimization_ (`metadata`): prunes only the state metadatas, keeps all blocks.
40-
By using one or the other, you are losing the ability to rollback or replay transactions earlier than `HEAD-n`.
41-
When using _classic pruning_, you aren't able to fetch blocks prior to `HEAD-n`.
39+
_Classic pruning_ (`all`): prunes given `HEAD-n` blocks from the databases, including store metadatas.
40+
_Auto Storage Optimization_ (`metadata`): prunes only the state metadatas, keeps all blocks.
41+
By using one or the other, you are losing the ability to rollback or replay transactions earlier than `HEAD-n`.
42+
When using _classic pruning_, you aren't able to fetch blocks prior to `HEAD-n`.
4243

4344
### Fixed
4445

block/internal/syncing/syncer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ func (s *Syncer) TrySyncNextBlock(ctx context.Context, event *common.DAHeightEve
678678
currentState := s.getLastState()
679679
headerHash := header.Hash().String()
680680

681-
s.logger.Info().Uint64("height", nextHeight).Msg("syncing block")
681+
s.logger.Info().Uint64("height", nextHeight).Str("source", string(event.Source)).Msg("syncing block")
682682

683683
// Compared to the executor logic where the current block needs to be applied first,
684684
// here only the previous block needs to be applied to proceed to the verification.

0 commit comments

Comments
 (0)