Browse Source

change app prepareproposal

wb/txrset
William Banfield 3 years ago
parent
commit
d3c4f7c7d9
No known key found for this signature in database GPG Key ID: EFAD3442BF29E3AC
1 changed files with 4 additions and 8 deletions
  1. +4
    -8
      test/e2e/app/app.go

+ 4
- 8
test/e2e/app/app.go View File

@ -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.


Loading…
Cancel
Save