aboutsummaryrefslogtreecommitdiff
path: root/miner/miner.go
diff options
context:
space:
mode:
authorDeterminant <tederminant@gmail.com>2019-09-26 16:16:56 -0400
committerDeterminant <tederminant@gmail.com>2019-09-26 16:16:56 -0400
commita96fc7a942fb6f0a9da5b5bf9c84a98af42a24dc (patch)
tree8cb685aa6df55f15758e93ffe24b6c5d075859a5 /miner/miner.go
parent2e0b38c332a3ab4e11b97a38ff6d8427a3d96215 (diff)
remove 1s limit from block generation; more API
Diffstat (limited to 'miner/miner.go')
-rw-r--r--miner/miner.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/miner/miner.go b/miner/miner.go
index 60a5d39..583e458 100644
--- a/miner/miner.go
+++ b/miner/miner.go
@@ -22,6 +22,7 @@ import (
"math/big"
"time"
+ myparams "github.com/ava-labs/coreth/params"
"github.com/ava-labs/go-ethereum/common"
"github.com/ava-labs/go-ethereum/common/hexutil"
"github.com/ava-labs/go-ethereum/consensus"
@@ -80,8 +81,8 @@ func (self *Miner) HashRate() uint64 {
}
func (self *Miner) SetExtra(extra []byte) error {
- if uint64(len(extra)) > params.MaximumExtraDataSize {
- return fmt.Errorf("Extra exceeds max length. %d > %v", len(extra), params.MaximumExtraDataSize)
+ if uint64(len(extra)) > myparams.MaximumExtraDataSize {
+ return fmt.Errorf("Extra exceeds max length. %d > %v", len(extra), myparams.MaximumExtraDataSize)
}
self.w.setExtra(extra)
return nil