aboutsummaryrefslogtreecommitdiffstats
path: root/pow/block.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-10 00:55:01 +0800
committerobscuren <geffobscura@gmail.com>2015-03-10 00:55:01 +0800
commit8560004f380dc688a1171ad5aeffa593aae41193 (patch)
treefea395acf042b51e97a86e2c4cbcf8c16b2912b7 /pow/block.go
parent9723191b19f6ddc12f0c3376ede7529b2d72e6a2 (diff)
parent676a0de58d3d7c508b0eeeff192d2095a46f7382 (diff)
downloaddexon-8560004f380dc688a1171ad5aeffa593aae41193.tar
dexon-8560004f380dc688a1171ad5aeffa593aae41193.tar.gz
dexon-8560004f380dc688a1171ad5aeffa593aae41193.tar.bz2
dexon-8560004f380dc688a1171ad5aeffa593aae41193.tar.lz
dexon-8560004f380dc688a1171ad5aeffa593aae41193.tar.xz
dexon-8560004f380dc688a1171ad5aeffa593aae41193.tar.zst
dexon-8560004f380dc688a1171ad5aeffa593aae41193.zip
wip
Diffstat (limited to 'pow/block.go')
-rw-r--r--pow/block.go17
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
}