make it a type in api
This commit is contained in:
+11
-1
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user