mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
correct log msg
This commit is contained in:
parent
2a95e684bd
commit
e21e4c71f9
1 changed files with 2 additions and 2 deletions
|
|
@ -500,10 +500,10 @@ func (c *Posv) YourTurn(chain consensus.ChainReader, parent *types.Header, signe
|
||||||
}
|
}
|
||||||
curIndex := position(masternodes, signer)
|
curIndex := position(masternodes, signer)
|
||||||
if signer == c.signer {
|
if signer == c.signer {
|
||||||
log.Info("Masternodes cycle info", "number of masternodes", len(masternodes), "previous", pre, "position", preIndex, "current", signer, "position", curIndex)
|
log.Debug("Masternodes cycle info", "number of masternodes", len(masternodes), "previous", pre, "position", preIndex, "current", signer, "position", curIndex)
|
||||||
}
|
}
|
||||||
for i, s := range masternodes {
|
for i, s := range masternodes {
|
||||||
log.Info("%d - %s\n", i, s.String())
|
log.Debug("Masternode:", "index", i, "address", s.String())
|
||||||
}
|
}
|
||||||
if (preIndex+1)%len(masternodes) == curIndex {
|
if (preIndex+1)%len(masternodes) == curIndex {
|
||||||
return len(masternodes), preIndex, curIndex, true, nil
|
return len(masternodes), preIndex, curIndex, true, nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue