Anton's suggested changes

This commit is contained in:
Ismail Khoffi
2018-12-10 11:19:02 +01:00
parent e33f256359
commit 3d5e06ff7c
2 changed files with 2 additions and 2 deletions

View File

@ -937,7 +937,7 @@ func (cs *ConsensusState) createProposalBlock() (block *types.Block, blockParts
), maxGas)
proposerAddr, err := cs.privValidator.GetAddress()
if err != nil {
cs.Logger.Error("enterPropose: Cannot create block without private validator's address:", "err", err)
cs.Logger.Error("enterPropose: Cannot create block without private validator's address", "err", err)
return
}
block, parts := cs.state.MakeBlock(cs.Height, txs, commit, evidence, proposerAddr)

View File

@ -627,7 +627,7 @@ func (n *Node) ConfigureRPC() {
rpccore.SetP2PTransport(n)
pubKey, err := n.privValidator.GetPubKey()
if err != nil {
n.Logger.Error("Error configuring RPC.", "err", err)
n.Logger.Error("Error configuring RPC", "err", err)
}
rpccore.SetPubKey(pubKey)
rpccore.SetGenesisDoc(n.genesisDoc)