diff options
Diffstat (limited to 'pow/block.go')
-rw-r--r-- | pow/block.go | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/pow/block.go b/pow/block.go index 31e194d8d..3bc63978b 100644 --- a/pow/block.go +++ b/pow/block.go @@ -1,10 +1,21 @@ package pow -import "math/big" +import ( + "math/big" + + "github.com/ethereum/go-ethereum/core/types" +) type Block interface { Difficulty() *big.Int HashNoNonce() []byte - N() []byte - Number() *big.Int + Nonce() uint64 + MixDigest() []byte + SeedHash() []byte + NumberU64() uint64 +} + +type ChainManager interface { + GetBlockByNumber(uint64) *types.Block + CurrentBlock() *types.Block } |