Skip to content

Commit

Permalink
Merge branch 'branch_dev_hugo' of github.com:Hugo-Huang/plugin into b…
Browse files Browse the repository at this point in the history
…ranch_dev_hugo
  • Loading branch information
Hugo-Huang committed Nov 22, 2018
2 parents 5507e20 + 9c0511e commit f495782
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin/consensus/tendermint/peer_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
4 changes: 2 additions & 2 deletions plugin/dapp/valnode/executor/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit f495782

Please sign in to comment.