diff --git a/build/version.go b/build/version.go index 7db75d814..01c209b1d 100644 --- a/build/version.go +++ b/build/version.go @@ -5,7 +5,7 @@ import "fmt" var CurrentCommit string // BuildVersion is the local build version, set by build system -const BuildVersion = "0.2.0" +const BuildVersion = "0.2.1" var UserVersion = BuildVersion + CurrentCommit diff --git a/chain/actors/actor_storagepower.go b/chain/actors/actor_storagepower.go index d3c2ad674..ab174d91e 100644 --- a/chain/actors/actor_storagepower.go +++ b/chain/actors/actor_storagepower.go @@ -130,6 +130,10 @@ type ArbitrateConsensusFaultParams struct { } func (spa StoragePowerActor) ArbitrateConsensusFault(act *types.Actor, vmctx types.VMContext, params *ArbitrateConsensusFaultParams) ([]byte, ActorError) { + if params == nil || params.Block1 == nil || params.Block2 == nil { + return nil, aerrors.New(1, "failed to parse params") + } + if params.Block1.Miner != params.Block2.Miner { return nil, aerrors.New(2, "blocks must be from the same miner") }