diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-04 00:20:34 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-04 00:20:34 +0800 |
commit | 22b132e28f74cabef38a55874da8e3db93786144 (patch) | |
tree | 2ae0e114e8aaf7dfba259c5e64979575bec4004b /pow/block.go | |
parent | ee0a1bec6c3ce942e51265535961ac6a745d33eb (diff) | |
parent | de9f79133faa1ff5dcd16fb4fd13d06b7799ded9 (diff) | |
download | go-tangerine-22b132e28f74cabef38a55874da8e3db93786144.tar go-tangerine-22b132e28f74cabef38a55874da8e3db93786144.tar.gz go-tangerine-22b132e28f74cabef38a55874da8e3db93786144.tar.bz2 go-tangerine-22b132e28f74cabef38a55874da8e3db93786144.tar.lz go-tangerine-22b132e28f74cabef38a55874da8e3db93786144.tar.xz go-tangerine-22b132e28f74cabef38a55874da8e3db93786144.tar.zst go-tangerine-22b132e28f74cabef38a55874da8e3db93786144.zip |
Merge branch 'publictests' of https://github.com/xcthulhu/go-ethereum into xcthulhu-publictests
Diffstat (limited to 'pow/block.go')
-rw-r--r-- | pow/block.go | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/pow/block.go b/pow/block.go index 31e194d8d..eb07bc86e 100644 --- a/pow/block.go +++ b/pow/block.go @@ -1,10 +1,20 @@ package pow -import "math/big" +import ( + "github.com/ethereum/go-ethereum/core/types" + "math/big" +) type Block interface { Difficulty() *big.Int HashNoNonce() []byte - N() []byte - Number() *big.Int + Nonce() []byte + MixDigest() []byte + SeedHash() []byte + NumberU64() uint64 +} + +type ChainManager interface { + GetBlockByNumber(uint64) *types.Block + CurrentBlock() *types.Block } |