Introducign MixDigest and SeedHash
This commit is contained in:
@ -5,6 +5,6 @@ import "math/big"
|
||||
type Block interface {
|
||||
Difficulty() *big.Int
|
||||
HashNoNonce() []byte
|
||||
N() []byte
|
||||
Nonce() []byte
|
||||
Number() *big.Int
|
||||
}
|
||||
|
@ -96,5 +96,5 @@ func verify(hash []byte, diff *big.Int, nonce []byte) bool {
|
||||
}
|
||||
|
||||
func Verify(block pow.Block) bool {
|
||||
return verify(block.HashNoNonce(), block.Difficulty(), block.N())
|
||||
return verify(block.HashNoNonce(), block.Difficulty(), block.Nonce())
|
||||
}
|
||||
|
Reference in New Issue
Block a user