update uses

This commit is contained in:
William Banfield
2022-04-11 12:04:17 -04:00
parent 66984ce432
commit 7b3feb1778
3 changed files with 334 additions and 440 deletions
-2
View File
@@ -107,13 +107,11 @@ func (blockExec *BlockExecutor) CreateProposalBlock(
rpp, err := blockExec.appClient.PrepareProposal(
ctx,
abci.RequestPrepareProposal{
Hash: block.Hash(),
Height: block.Height,
Time: block.Time,
Txs: block.Txs.ToSliceOfBytes(),
LocalLastCommit: extendedCommitInfo(localLastCommit, votes),
ByzantineValidators: block.Evidence.ToABCI(),
ProposerAddress: block.ProposerAddress,
NextValidatorsHash: block.NextValidatorsHash,
MaxTxBytes: maxDataBytes,
},
+2
View File
@@ -339,6 +339,8 @@ func TestProcessProposal(t *testing.T) {
Round: 0,
Votes: voteInfos,
},
NextValidatorsHash: block1.NextValidatorsHash,
ProposerAddress: block1.ProposerAddress,
}
app.On("ProcessProposal", mock.Anything).Return(abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_ACCEPT})