minor fixes

This commit is contained in:
Ethan Buchman 2018-08-16 10:58:03 -04:00
parent 4f61b97bbe
commit 0701d79046
2 changed files with 4 additions and 3 deletions

View File

@ -215,9 +215,10 @@ func execBlockOnProxyApp(logger log.Logger, proxyAppConn proxy.AppConnConsensus,
logger.Info("Executed block", "height", block.Height, "validTxs", validTxs, "invalidTxs", invalidTxs)
if len(abciResponses.EndBlock.ValidatorUpdates) > 0 {
valUpdates := abciResponses.EndBlock.ValidatorUpdates
if len(valUpdates) > 0 {
// TODO: cleanup the formatting
logger.Info("Updates to validators", "updates", abciResponses.EndBlock.ValidatorUpdates)
logger.Info("Updates to validators", "updates", valUpdates)
}
return abciResponses, nil

View File

@ -57,7 +57,7 @@ func TestABCIValidators(t *testing.T) {
assert.Nil(t, err)
assert.Equal(t, tmValExpected, tmVals[0])
// val with incorrect pubkey daya
// val with incorrect pubkey data
abciVal = TM2PB.ValidatorUpdate(tmVal)
abciVal.PubKey.Data = []byte("incorrect!")
tmVals, err = PB2TM.ValidatorUpdates([]abci.ValidatorUpdate{abciVal})