mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
Fixed comment.
This commit is contained in:
parent
13db4ec070
commit
e780bde12f
4 changed files with 7 additions and 8 deletions
|
|
@ -28,6 +28,7 @@ import (
|
|||
"unicode"
|
||||
|
||||
"github.com/ethereum/go-ethereum/cmd/utils"
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/dashboard"
|
||||
"github.com/ethereum/go-ethereum/eth"
|
||||
"github.com/ethereum/go-ethereum/internal/debug"
|
||||
|
|
@ -36,7 +37,6 @@ import (
|
|||
"github.com/ethereum/go-ethereum/params"
|
||||
whisper "github.com/ethereum/go-ethereum/whisper/whisperv6"
|
||||
"github.com/naoina/toml"
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -480,7 +480,6 @@ func (c *Posv) YourTurn(chain consensus.ChainReader, parent *types.Header, signe
|
|||
// Only three mns for tomo testnet.
|
||||
masternodes = masternodes[:3]
|
||||
}
|
||||
log.Error("masternodes", "masternodes", len(masternodes))
|
||||
snap, err := c.GetSnapshot(chain, parent)
|
||||
if err != nil {
|
||||
log.Warn("Failed when trying to commit new work", "err", err)
|
||||
|
|
|
|||
|
|
@ -127,11 +127,11 @@ type BlockChain struct {
|
|||
bodyRLPCache *lru.Cache // Cache for the most recent block bodies in RLP encoded format
|
||||
blockCache *lru.Cache // Cache for the most recent entire blocks
|
||||
futureBlocks *lru.Cache // future blocks are blocks added for later processing
|
||||
resultProcess *lru.Cache // Cache for processed blocks
|
||||
calculatingBlock *lru.Cache // Cache for processing blocks
|
||||
downloadingBlock *lru.Cache // Cache for downloading blocks (avoid duplication from fetcher)
|
||||
quit chan struct{} // blockchain quit channel
|
||||
running int32 // running must be called atomically
|
||||
resultProcess *lru.Cache // Cache for processed blocks
|
||||
calculatingBlock *lru.Cache // Cache for processing blocks
|
||||
downloadingBlock *lru.Cache // Cache for downloading blocks (avoid duplication from fetcher)
|
||||
quit chan struct{} // blockchain quit channel
|
||||
running int32 // running must be called atomically
|
||||
// procInterrupt must be atomically called
|
||||
procInterrupt int32 // interrupt signaler for block processing
|
||||
wg sync.WaitGroup // chain processing wait group for shutting down
|
||||
|
|
|
|||
|
|
@ -497,7 +497,7 @@ func (self *worker) commitNewWork() {
|
|||
if self.config.Posv != nil {
|
||||
// get masternodes set from latest checkpoint
|
||||
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 {
|
||||
log.Warn("Failed when trying to commit new work", "err", err)
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue