aboutsummaryrefslogtreecommitdiffstats
path: root/pow
diff options
context:
space:
mode:
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())
}