Commit f495782e authored by Hugo's avatar Hugo

Merge branch 'branch_dev_hugo' of github.com:Hugo-Huang/plugin into branch_dev_hugo

parents 5507e208 9c0511e7
...@@ -537,7 +537,7 @@ FOR_LOOP: ...@@ -537,7 +537,7 @@ FOR_LOOP:
tendermintlog.Debug("Receiving vote", "vote-height", vote.Height, "peerip", pc.ip.String()) tendermintlog.Debug("Receiving vote", "vote-height", vote.Height, "peerip", pc.ip.String())
pc.state.SetHasVote(vote) pc.state.SetHasVote(vote)
} else if pkt.TypeID == ttypes.ProposalBlockID { } 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()) tendermintlog.Debug("Receiving proposal block", "block-height", block.Header.Height, "peerip", pc.ip.String())
pc.state.SetHasProposalBlock(block) pc.state.SetHasProposalBlock(block)
} }
......
...@@ -10,11 +10,11 @@ import ( ...@@ -10,11 +10,11 @@ import (
) )
func (val *ValNode) Exec_Node(node *pty.ValNode, tx *types.Transaction, index int) (*types.Receipt, error) { 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 return receipt, nil
} }
func (val *ValNode) Exec_BlockInfo(blockInfo *pty.TendermintBlockInfo, tx *types.Transaction, index int) (*types.Receipt, error) { 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 return receipt, nil
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment