diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e507bdab..24eaa6173 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changes - Subscribe to forced inclusion namespace events [#3146](https://github.com/evstack/ev-node/pull/3146) +- Display block source in sync log [#3193](https://github.com/evstack/ev-node/pull/3193) ## v1.0.0 @@ -35,10 +36,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Verify DA and P2P state on restart (prevent double-signing). [#3061](https://github.com/evstack/ev-node/pull/3061) - Node pruning support. [#2984](https://github.com/evstack/ev-node/pull/2984) - Two different sort of pruning implemented: - _Classic pruning_ (`all`): prunes given `HEAD-n` blocks from the databases, including store metadatas. - _Auto Storage Optimization_ (`metadata`): prunes only the state metadatas, keeps all blocks. - By using one or the other, you are losing the ability to rollback or replay transactions earlier than `HEAD-n`. - When using _classic pruning_, you aren't able to fetch blocks prior to `HEAD-n`. + _Classic pruning_ (`all`): prunes given `HEAD-n` blocks from the databases, including store metadatas. + _Auto Storage Optimization_ (`metadata`): prunes only the state metadatas, keeps all blocks. + By using one or the other, you are losing the ability to rollback or replay transactions earlier than `HEAD-n`. + When using _classic pruning_, you aren't able to fetch blocks prior to `HEAD-n`. ### Fixed diff --git a/block/internal/syncing/syncer.go b/block/internal/syncing/syncer.go index a8e6a99cc..3dcf80ea3 100644 --- a/block/internal/syncing/syncer.go +++ b/block/internal/syncing/syncer.go @@ -678,7 +678,7 @@ func (s *Syncer) TrySyncNextBlock(ctx context.Context, event *common.DAHeightEve currentState := s.getLastState() headerHash := header.Hash().String() - s.logger.Info().Uint64("height", nextHeight).Msg("syncing block") + s.logger.Info().Uint64("height", nextHeight).Str("source", string(event.Source)).Msg("syncing block") // Compared to the executor logic where the current block needs to be applied first, // here only the previous block needs to be applied to proceed to the verification.