mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
Merge pull request #358 from dinhln89/half-mn
Remove comment redudant code for issue https://github.com/tomochain/tomochain/pull/343
This commit is contained in:
commit
2a95e684bd
4 changed files with 7 additions and 8 deletions
|
|
@ -28,6 +28,7 @@ import (
|
||||||
"unicode"
|
"unicode"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/cmd/utils"
|
"github.com/ethereum/go-ethereum/cmd/utils"
|
||||||
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/dashboard"
|
"github.com/ethereum/go-ethereum/dashboard"
|
||||||
"github.com/ethereum/go-ethereum/eth"
|
"github.com/ethereum/go-ethereum/eth"
|
||||||
"github.com/ethereum/go-ethereum/internal/debug"
|
"github.com/ethereum/go-ethereum/internal/debug"
|
||||||
|
|
@ -36,7 +37,6 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/params"
|
"github.com/ethereum/go-ethereum/params"
|
||||||
whisper "github.com/ethereum/go-ethereum/whisper/whisperv6"
|
whisper "github.com/ethereum/go-ethereum/whisper/whisperv6"
|
||||||
"github.com/naoina/toml"
|
"github.com/naoina/toml"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
||||||
|
|
@ -480,7 +480,6 @@ func (c *Posv) YourTurn(chain consensus.ChainReader, parent *types.Header, signe
|
||||||
// Only three mns for tomo testnet.
|
// Only three mns for tomo testnet.
|
||||||
masternodes = masternodes[:3]
|
masternodes = masternodes[:3]
|
||||||
}
|
}
|
||||||
log.Error("masternodes", "masternodes", len(masternodes))
|
|
||||||
snap, err := c.GetSnapshot(chain, parent)
|
snap, err := c.GetSnapshot(chain, parent)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warn("Failed when trying to commit new work", "err", err)
|
log.Warn("Failed when trying to commit new work", "err", err)
|
||||||
|
|
|
||||||
|
|
@ -497,7 +497,7 @@ func (self *worker) commitNewWork() {
|
||||||
if self.config.Posv != nil {
|
if self.config.Posv != nil {
|
||||||
// get masternodes set from latest checkpoint
|
// get masternodes set from latest checkpoint
|
||||||
c := self.engine.(*posv.Posv)
|
c := self.engine.(*posv.Posv)
|
||||||
len, preIndex, curIndex, ok, err := c.YourTurn(self.chain, parent.Header(),self.coinbase)
|
len, preIndex, curIndex, ok, err := c.YourTurn(self.chain, parent.Header(), self.coinbase)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warn("Failed when trying to commit new work", "err", err)
|
log.Warn("Failed when trying to commit new work", "err", err)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue