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