package externalapi // Each of the following represent one of the possible sync // states of the consensus const ( SyncStateNormal SyncState = iota SyncStateMissingUTXOSet SyncStateHeadersFirst SyncStateMissingBlockBodies ) // SyncState represents the current sync state of the consensus type SyncState uint8 func (s SyncState) String() string { switch s { case SyncStateNormal: return "SyncStateNormal" case SyncStateMissingUTXOSet: return "SyncStateMissingUTXOSet" case SyncStateHeadersFirst: return "SyncStateHeadersFirst" case SyncStateMissingBlockBodies: return "SyncStateMissingBlockBodies" } return "" } // SyncInfo holds info about the current sync state of the consensus type SyncInfo struct { State SyncState IBDRootUTXOBlockHash *DomainHash }