Skip to content

Commit 53f5ded

Browse files
committed
Review feedback
1 parent 74641e0 commit 53f5ded

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

CHANGELOG.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
## [Unreleased]
1111

12-
<<<<<<< HEAD
1312
### Changes
1413

1514
* Added publisher-mode synchronization option for failover scenarios with early P2P infrastructure readiness [#3222](https://github.com/evstack/ev-node/pull/3222)
1615
* Improve execution/evm check for stored meta not stale [#3221](https://github.com/evstack/ev-node/pull/3221)
17-
=======
18-
### Added
19-
20-
* Added publisher-mode synchronization option for failover scenarios with early P2P infrastructure readiness [#3222](https://github.com/evstack/ev-node/pull/3222)
21-
>>>>>>> a2b0ff76 (Changelog)
2216

2317
## v1.1.0-rc.1
2418

block/internal/syncing/syncer.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,6 @@ func (s *Syncer) RecoverFromRaft(ctx context.Context, raftState *raft.RaftBlockS
11941194
}
11951195

11961196
currentState := s.getLastState()
1197-
stateBootstrapped := false
11981197

11991198
// Defensive: if lastState is not yet initialized (e.g., RecoverFromRaft called before Start),
12001199
// load it from the store to ensure we have valid state for validation.
@@ -1210,7 +1209,6 @@ func (s *Syncer) RecoverFromRaft(ctx context.Context, raftState *raft.RaftBlockS
12101209
InitialHeight: s.genesis.InitialHeight,
12111210
LastBlockHeight: s.genesis.InitialHeight - 1,
12121211
}
1213-
stateBootstrapped = true
12141212
}
12151213
}
12161214

@@ -1228,12 +1226,6 @@ func (s *Syncer) RecoverFromRaft(ctx context.Context, raftState *raft.RaftBlockS
12281226
Source: "",
12291227
}
12301228
err := s.trySyncNextBlockWithState(ctx, event, currentState)
1231-
if err != nil && stateBootstrapped && errors.Is(err, errInvalidState) {
1232-
s.logger.Debug().Err(err).Msg("raft recovery failed after bootstrap state init, retrying once")
1233-
// Keep strict validation semantics; this retry only guards startup ordering races.
1234-
s.SetLastState(currentState)
1235-
err = s.trySyncNextBlockWithState(ctx, event, currentState)
1236-
}
12371229
if err != nil {
12381230
return err
12391231
}

0 commit comments

Comments
 (0)