that doesnt belong there, really
This commit is contained in:
parent
d415aa779c
commit
da73b62074
@ -2,7 +2,6 @@ package types
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
|
||||||
"math/big"
|
"math/big"
|
||||||
|
|
||||||
"github.com/minio/blake2b-simd"
|
"github.com/minio/blake2b-simd"
|
||||||
@ -102,14 +101,6 @@ func DecodeBlock(b []byte) (*BlockHeader, error) {
|
|||||||
return nil, err
|
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
|
return &blk, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user