From d3c4f7c7d978977b42d7b33375434f6957d765b8 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Fri, 11 Mar 2022 13:20:08 -0500 Subject: [PATCH] change app prepareproposal --- test/e2e/app/app.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/test/e2e/app/app.go b/test/e2e/app/app.go index e7f4e4998..ebae6c7af 100644 --- a/test/e2e/app/app.go +++ b/test/e2e/app/app.go @@ -300,14 +300,10 @@ func (app *Application) ApplySnapshotChunk(req abci.RequestApplySnapshotChunk) a } func (app *Application) PrepareProposal(req abci.RequestPrepareProposal) abci.ResponsePrepareProposal { - trs := make([]*abci.TxRecord, len(req.Txs)) - for i, tx := range req.Txs { - trs[i] = &abci.TxRecord{ - Tx: tx, - Action: abci.TxRecord_UNMODIFIED, - } - } - return abci.ResponsePrepareProposal{TxRecords: trs} + // None of the transactions are modified by the application, return a ResponsePrepareProposal + // with ModifiedTx set to false. false is the zero-value in go, so an empty ResponsePrepareProposal + // will set the field appropriately. + return abci.ResponsePrepareProposal{} } // ProcessProposal implements part of the Application interface.