mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-18 21:26:20 +00:00
change app prepareproposal
This commit is contained in:
+4
-8
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user