aboutsummaryrefslogtreecommitdiffstats
path: root/pow/block.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-04 00:20:34 +0800
committerobscuren <geffobscura@gmail.com>2015-03-04 00:20:34 +0800
commit22b132e28f74cabef38a55874da8e3db93786144 (patch)
tree2ae0e114e8aaf7dfba259c5e64979575bec4004b /pow/block.go
parentee0a1bec6c3ce942e51265535961ac6a745d33eb (diff)
parentde9f79133faa1ff5dcd16fb4fd13d06b7799ded9 (diff)
downloadgo-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.go16
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
}