From da73b620748f8d5ae1ce8f2c95f87592e216ebbf Mon Sep 17 00:00:00 2001 From: Jeromy Date: Fri, 8 May 2020 11:18:01 -0700 Subject: [PATCH] that doesnt belong there, really --- chain/types/blockheader.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/chain/types/blockheader.go b/chain/types/blockheader.go index adbb13c95..86d516f98 100644 --- a/chain/types/blockheader.go +++ b/chain/types/blockheader.go @@ -2,7 +2,6 @@ package types import ( "bytes" - "fmt" "math/big" "github.com/minio/blake2b-simd" @@ -102,14 +101,6 @@ func DecodeBlock(b []byte) (*BlockHeader, error) { return nil, err } - if blk.ElectionProof == nil { - return nil, fmt.Errorf("block cannot have nil election proof") - } - - if blk.Ticket == nil { - return nil, fmt.Errorf("block cannot have nil ticket") - } - return &blk, nil }