BlockchainReactor syncs first before ConsensusReactor.

This commit is contained in:
Jae Kwon
2015-03-25 11:50:28 -07:00
parent aed4bbf0f0
commit cebfae60c7
9 changed files with 232 additions and 116 deletions
+3 -1
View File
@@ -39,7 +39,9 @@ func (b *Block) ValidateBasic(lastBlockHeight uint, lastBlockHash []byte,
if !b.LastBlockParts.Equals(lastBlockParts) {
return errors.New("Wrong Block.Header.LastBlockParts")
}
/* TODO: Determine bounds.
/* TODO: Determine bounds
See blockchain/reactor "stopSyncingDurationMinutes"
if !b.Time.After(lastBlockTime) {
return errors.New("Invalid Block.Header.Time")
}