aboutsummaryrefslogtreecommitdiffstats
path: root/pow
diff options
context:
space:
mode:
authorMatthew Wampler-Doty <matthew.wampler.doty@gmail.com>2015-02-28 04:59:33 +0800
committerMatthew Wampler-Doty <matthew.wampler.doty@gmail.com>2015-02-28 04:59:33 +0800
commit8653db6df0018d08212493e3a3df4677162bdd8f (patch)
tree579e7a57b675988b71f9da2f357453685861263e /pow
parent5912f0a849f64f8a4d7b681df8d101f3f4080e17 (diff)
downloadgo-tangerine-8653db6df0018d08212493e3a3df4677162bdd8f.tar
go-tangerine-8653db6df0018d08212493e3a3df4677162bdd8f.tar.gz
go-tangerine-8653db6df0018d08212493e3a3df4677162bdd8f.tar.bz2
go-tangerine-8653db6df0018d08212493e3a3df4677162bdd8f.tar.lz
go-tangerine-8653db6df0018d08212493e3a3df4677162bdd8f.tar.xz
go-tangerine-8653db6df0018d08212493e3a3df4677162bdd8f.tar.zst
go-tangerine-8653db6df0018d08212493e3a3df4677162bdd8f.zip
Introducign MixDigest and SeedHash
Diffstat (limited to 'pow')
-rw-r--r--pow/block.go2
-rw-r--r--pow/ezp/pow.go2
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())
}