Browse Source

minor fixes

pull/2159/head
Ethan Buchman 6 years ago
parent
commit
0701d79046
2 changed files with 4 additions and 3 deletions
  1. +3
    -2
      state/execution.go
  2. +1
    -1
      types/protobuf_test.go

+ 3
- 2
state/execution.go 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


+ 1
- 1
types/protobuf_test.go 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})


Loading…
Cancel
Save