aboutsummaryrefslogtreecommitdiffstats
path: root/pow/block.go
diff options
context:
space:
mode:
authorMatthew Wampler-Doty <matthew.wampler.doty@gmail.com>2015-03-01 03:58:37 +0800
committerMatthew Wampler-Doty <matthew.wampler.doty@gmail.com>2015-03-03 11:29:34 +0800
commitde9f79133faa1ff5dcd16fb4fd13d06b7799ded9 (patch)
treefcc9001d6b681ccdd1b3bbe516e3611e808341d7 /pow/block.go
parent080823bdeebbab2bcffdaefad703896700ed2c30 (diff)
downloaddexon-de9f79133faa1ff5dcd16fb4fd13d06b7799ded9.tar.gz
dexon-de9f79133faa1ff5dcd16fb4fd13d06b7799ded9.tar.zst
dexon-de9f79133faa1ff5dcd16fb4fd13d06b7799ded9.zip
Introducing ethash
Diffstat (limited to 'pow/block.go')
-rw-r--r--pow/block.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/pow/block.go b/pow/block.go
index 129f96fd3..eb07bc86e 100644
--- a/pow/block.go
+++ b/pow/block.go
@@ -1,12 +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
Nonce() []byte
- Number() *big.Int
MixDigest() []byte
SeedHash() []byte
+ NumberU64() uint64
+}
+
+type ChainManager interface {
+ GetBlockByNumber(uint64) *types.Block
+ CurrentBlock() *types.Block
}