Introducign MixDigest and SeedHash

This commit is contained in:
Matthew Wampler-Doty
2015-02-27 15:59:33 -05:00
parent 5912f0a849
commit 8653db6df0
3 changed files with 9 additions and 4 deletions

View File

@ -5,6 +5,6 @@ import "math/big"
type Block interface {
Difficulty() *big.Int
HashNoNonce() []byte
N() []byte
Nonce() []byte
Number() *big.Int
}

View File

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