Skip to content

Commit 388fa64

Browse files
authored
refactor(syncing): loosen da start height check (#2925)
<!-- Please read and fill out this form before submitting your PR. Please make sure you have reviewed our contributors guide before submitting your first PR. NOTE: PR titles should follow semantic commits: https://www.conventionalcommits.org/en/v1.0.0/ --> ## Overview <!-- Please provide an explanation of the PR, including the appropriate context, background, goal, and rationale. If there is an issue with this information, please provide a tl;dr and link the issue. Ex: Closes #<issue number> -->
1 parent d7eda60 commit 388fa64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/internal/syncing/syncer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func (s *Syncer) initializeState() error {
200200
AppHash: stateRoot,
201201
}
202202
}
203-
if state.DAHeight < s.genesis.DAStartHeight {
203+
if state.DAHeight != 0 && state.DAHeight < s.genesis.DAStartHeight { // state.DaHeight can be 0 if the node starts from sequencer state
204204
return fmt.Errorf("DA height (%d) is lower than DA start height (%d)", state.DAHeight, s.genesis.DAStartHeight)
205205
}
206206
s.SetLastState(state)

0 commit comments

Comments
 (0)