move fork constant and tag fork branch with comment
This commit is contained in:
parent
e3bed8d12a
commit
2edb32979f
@ -1,3 +1,3 @@
|
||||
package build
|
||||
|
||||
// No forks yet \o/
|
||||
const ForkBlizzardHeight = 6000
|
||||
|
@ -105,9 +105,3 @@ const BlsSignatureCacheSize = 40000
|
||||
// Limits
|
||||
|
||||
const BlockMessageLimit = 512
|
||||
|
||||
/////////////
|
||||
// Fork Heights
|
||||
//
|
||||
|
||||
const ForkBlizzardHeight = 6000
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user