aboutsummaryrefslogtreecommitdiff
path: root/eth
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-09-26 16:16:56 -0400
committerDeterminant <[email protected]>2019-09-26 16:16:56 -0400
commita96fc7a942fb6f0a9da5b5bf9c84a98af42a24dc (patch)
tree8cb685aa6df55f15758e93ffe24b6c5d075859a5 /eth
parent2e0b38c332a3ab4e11b97a38ff6d8427a3d96215 (diff)
remove 1s limit from block generation; more API
Diffstat (limited to 'eth')
-rw-r--r--eth/backend.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/eth/backend.go b/eth/backend.go
index b297b9b..4281d96 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -30,6 +30,7 @@ import (
"github.com/ava-labs/coreth/internal/ethapi"
"github.com/ava-labs/coreth/miner"
"github.com/ava-labs/coreth/node"
+ myparams "github.com/ava-labs/coreth/params"
"github.com/ava-labs/go-ethereum/accounts"
"github.com/ava-labs/go-ethereum/accounts/abi/bind"
"github.com/ava-labs/go-ethereum/common"
@@ -240,8 +241,8 @@ func makeExtraData(extra []byte) []byte {
runtime.GOOS,
})
}
- if uint64(len(extra)) > params.MaximumExtraDataSize {
- log.Warn("Miner extra data exceed limit", "extra", hexutil.Bytes(extra), "limit", params.MaximumExtraDataSize)
+ if uint64(len(extra)) > myparams.MaximumExtraDataSize {
+ log.Warn("Miner extra data exceed limit", "extra", hexutil.Bytes(extra), "limit", myparams.MaximumExtraDataSize)
extra = nil
}
return extra
@@ -441,7 +442,8 @@ func (s *Ethereum) StartMining(threads int) error {
// introduced to speed sync times.
atomic.StoreUint32(&s.protocolManager.acceptTxs, 1)
- go s.miner.Start(eb)
+ //go s.miner.Start(eb)
+ s.miner.Start(eb)
}
return nil
}