Skip to content

Commit

Permalink
add back signGossipVote hook
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-soon authored and yan-soon committed Apr 18, 2024
1 parent 8149b71 commit 7ba2168
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions state/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,15 @@ func (blockExec *BlockExecutor) CreateProposalBlock(
votes = append(votes, vote)
}

msg := oracleproto.GossipVotes{
GossipVotes: votes,
}

msgBz, err := msg.Marshal()
resp, err := blockExec.proxyApp.SignGossipVote(ctx, &abci.RequestSignGossipVote{
ProposerAddress: proposerAddr,
GossipVotes: votes,
Height: height,
})
if err != nil {
blockExec.logger.Error("error marshalling oracleVotesMsg", "err", err)
} else {
signGossipVoteTxBz = msgBz
blockExec.logger.Error("error in proxyAppConn.SignGossipVote", "err", err)
}
signGossipVoteTxBz = resp.EncodedTx
}

var txs types.Txs
Expand Down

0 comments on commit 7ba2168

Please sign in to comment.