Merge pull request #2212 from filecoin-project/fix/master-build

sync: Fix build
This commit is contained in:
Łukasz Magiera 2020-07-01 11:26:43 +02:00 committed by GitHub
commit 228ff3ba57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1534,5 +1534,5 @@ func (syncer *Syncer) IsEpochBeyondCurrMax(epoch abi.ChainEpoch) bool {
}
now := uint64(time.Now().Unix())
return epoch > (abi.ChainEpoch((now-g.Timestamp)/build.BlockDelay) + MaxHeightDrift)
return epoch > (abi.ChainEpoch((now-g.Timestamp)/build.BlockDelaySecs) + MaxHeightDrift)
}