move fork constant and tag fork branch with comment

This commit is contained in:
whyrusleeping 2020-01-16 11:45:41 -08:00
parent e3bed8d12a
commit 2edb32979f
3 changed files with 2 additions and 7 deletions

View File

@ -1,3 +1,3 @@
package build
// No forks yet \o/
const ForkBlizzardHeight = 6000

View File

@ -105,9 +105,3 @@ const BlsSignatureCacheSize = 40000
// Limits
const BlockMessageLimit = 512
/////////////
// Fork Heights
//
const ForkBlizzardHeight = 6000

View File

@ -138,6 +138,7 @@ func (spa StoragePowerActor) ArbitrateConsensusFault(act *types.Actor, vmctx typ
return nil, aerrors.New(2, "blocks must be from the same miner")
}
// FORK
if vmctx.BlockHeight() > build.ForkBlizzardHeight {
if params.Block1.Cid() == params.Block2.Cid() {
return nil, aerrors.New(3, "blocks must be different")