From 0701d790468bf9049121ce02144dc08150125a1e Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Thu, 16 Aug 2018 10:58:03 -0400 Subject: [PATCH] minor fixes --- state/execution.go | 5 +++-- types/protobuf_test.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/state/execution.go b/state/execution.go index 4872584a4..aa96d22e8 100644 --- a/state/execution.go +++ b/state/execution.go @@ -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 diff --git a/types/protobuf_test.go b/types/protobuf_test.go index 22bed60fa..8bdf094ba 100644 --- a/types/protobuf_test.go +++ b/types/protobuf_test.go @@ -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})