that doesnt belong there, really

This commit is contained in:
Jeromy 2020-05-08 11:18:01 -07:00
parent d415aa779c
commit da73b62074

View File

@ -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
}