aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_makers.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-04 04:04:31 +0800
committerobscuren <geffobscura@gmail.com>2015-03-04 04:04:31 +0800
commit26de12d9bf23bce7de26b3b6629601ec2e58ad5b (patch)
tree0d4b76fcb717049d988b7f283967f43dc5517a5e /core/chain_makers.go
parente9f1e868e2bc0205d0b7655cd07fcaba9b2bc97d (diff)
downloaddexon-26de12d9bf23bce7de26b3b6629601ec2e58ad5b.tar
dexon-26de12d9bf23bce7de26b3b6629601ec2e58ad5b.tar.gz
dexon-26de12d9bf23bce7de26b3b6629601ec2e58ad5b.tar.bz2
dexon-26de12d9bf23bce7de26b3b6629601ec2e58ad5b.tar.lz
dexon-26de12d9bf23bce7de26b3b6629601ec2e58ad5b.tar.xz
dexon-26de12d9bf23bce7de26b3b6629601ec2e58ad5b.tar.zst
dexon-26de12d9bf23bce7de26b3b6629601ec2e58ad5b.zip
Changed nonce to a uint64
Diffstat (limited to 'core/chain_makers.go')
-rw-r--r--core/chain_makers.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/chain_makers.go b/core/chain_makers.go
index 7afdfde0d..3248975e1 100644
--- a/core/chain_makers.go
+++ b/core/chain_makers.go
@@ -14,8 +14,8 @@ import (
// So we can generate blocks easily
type FakePow struct{}
-func (f FakePow) Search(block pow.Block, stop <-chan struct{}) ([]byte, []byte, []byte) {
- return nil, nil, nil
+func (f FakePow) Search(block pow.Block, stop <-chan struct{}) (uint64, []byte, []byte) {
+ return 0, nil, nil
}
func (f FakePow) Verify(block pow.Block) bool { return true }
func (f FakePow) GetHashrate() int64 { return 0 }
@@ -55,7 +55,7 @@ func NewCanonical(n int, db ethutil.Database) (*BlockProcessor, error) {
// block time is fixed at 10 seconds
func newBlockFromParent(addr []byte, parent *types.Block) *types.Block {
- block := types.NewBlock(parent.Hash(), addr, parent.Root(), ethutil.BigPow(2, 32), nil, "")
+ block := types.NewBlock(parent.Hash(), addr, parent.Root(), ethutil.BigPow(2, 32), 0, "")
block.SetUncles(nil)
block.SetTransactions(nil)
block.SetReceipts(nil)