diff --git a/plugin/consensus/tendermint/peer_set.go b/plugin/consensus/tendermint/peer_set.go index 5f77b6a46d..0a776bf207 100644 --- a/plugin/consensus/tendermint/peer_set.go +++ b/plugin/consensus/tendermint/peer_set.go @@ -537,7 +537,7 @@ FOR_LOOP: tendermintlog.Debug("Receiving vote", "vote-height", vote.Height, "peerip", pc.ip.String()) pc.state.SetHasVote(vote) } else if pkt.TypeID == ttypes.ProposalBlockID { - block := &ttypes.TendermintBlock{TendermintBlock:realMsg.(*tmtypes.TendermintBlock)} + block := &ttypes.TendermintBlock{TendermintBlock: realMsg.(*tmtypes.TendermintBlock)} tendermintlog.Debug("Receiving proposal block", "block-height", block.Header.Height, "peerip", pc.ip.String()) pc.state.SetHasProposalBlock(block) } diff --git a/plugin/dapp/valnode/executor/exec.go b/plugin/dapp/valnode/executor/exec.go index 6c5d9cde1c..96c2a4aa2d 100644 --- a/plugin/dapp/valnode/executor/exec.go +++ b/plugin/dapp/valnode/executor/exec.go @@ -10,11 +10,11 @@ import ( ) func (val *ValNode) Exec_Node(node *pty.ValNode, tx *types.Transaction, index int) (*types.Receipt, error) { - receipt := &types.Receipt{Ty:types.ExecOk, KV:nil, Logs:nil} + receipt := &types.Receipt{Ty: types.ExecOk, KV: nil, Logs: nil} return receipt, nil } func (val *ValNode) Exec_BlockInfo(blockInfo *pty.TendermintBlockInfo, tx *types.Transaction, index int) (*types.Receipt, error) { - receipt := &types.Receipt{Ty:types.ExecOk, KV:nil, Logs:nil} + receipt := &types.Receipt{Ty: types.ExecOk, KV: nil, Logs: nil} return receipt, nil }