Skip to content

Commit

Permalink
Disable snap sync mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeonLewis committed May 9, 2024
1 parent fa99a3b commit 0fa9988
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions node/cn/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ func senderTxHashIndexer(db database.DBManager, chainEvent <-chan blockchain.Cha
}

func checkSyncMode(config *Config) error {
// TODO-Kaia: allow snap sync after resolving the staking info sync issue
if config.SyncMode == downloader.SnapSync {
return fmt.Errorf("snap sync is temporarily disabled")
}
if !config.SyncMode.IsValid() {
return fmt.Errorf("invalid sync mode %d", config.SyncMode)
}
Expand Down

0 comments on commit 0fa9988

Please sign in to comment.