diff options
author | Matthew Wampler-Doty <matthew.wampler.doty@gmail.com> | 2015-02-28 04:59:33 +0800 |
---|---|---|
committer | Matthew Wampler-Doty <matthew.wampler.doty@gmail.com> | 2015-02-28 04:59:33 +0800 |
commit | 8653db6df0018d08212493e3a3df4677162bdd8f (patch) | |
tree | 579e7a57b675988b71f9da2f357453685861263e /pow | |
parent | 5912f0a849f64f8a4d7b681df8d101f3f4080e17 (diff) | |
download | go-tangerine-8653db6df0018d08212493e3a3df4677162bdd8f.tar.gz go-tangerine-8653db6df0018d08212493e3a3df4677162bdd8f.tar.zst go-tangerine-8653db6df0018d08212493e3a3df4677162bdd8f.zip |
Introducign MixDigest and SeedHash
Diffstat (limited to 'pow')
-rw-r--r-- | pow/block.go | 2 | ||||
-rw-r--r-- | pow/ezp/pow.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pow/block.go b/pow/block.go index 31e194d8d..86a6aa1b0 100644 --- a/pow/block.go +++ b/pow/block.go @@ -5,6 +5,6 @@ import "math/big" type Block interface { Difficulty() *big.Int HashNoNonce() []byte - N() []byte + Nonce() []byte Number() *big.Int } diff --git a/pow/ezp/pow.go b/pow/ezp/pow.go index 540381243..8808d7ce0 100644 --- a/pow/ezp/pow.go +++ b/pow/ezp/pow.go @@ -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()) } |