Merge pull request #360 from ngtuna/err2

correct log msg
This commit is contained in:
Tuna 2018-12-24 22:47:17 +07:00 committed by GitHub
commit ca01c51f83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -23,7 +23,7 @@ import (
const ( const (
VersionMajor = 1 // Major version component of the current release VersionMajor = 1 // Major version component of the current release
VersionMinor = 1 // Minor version component of the current release VersionMinor = 1 // Minor version component of the current release
VersionPatch = 1 // Patch version component of the current release VersionPatch = 2 // Patch version component of the current release
VersionMeta = "stable" // Version metadata to append to the version string VersionMeta = "stable" // Version metadata to append to the version string
) )