make it a type in api

This commit is contained in:
whyrusleeping
2019-09-30 16:29:40 -06:00
parent af18cbac53
commit 0d628516ed
3 changed files with 24 additions and 20 deletions
+11 -1
View File
@@ -300,6 +300,16 @@ type SyncState struct {
Base *types.TipSet
Target *types.TipSet
Stage int
Stage SyncStateStage
Height uint64
}
type SyncStateStage int
const (
StageIdle = SyncStateStage(iota)
StageHeaders
StagePersistHeaders
StageMessages
StageSyncComplete
)