mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-07 16:47:07 +00:00
change simple apps to use TxRecords
This commit is contained in:
+8
-1
@@ -300,7 +300,14 @@ func (app *Application) ApplySnapshotChunk(req abci.RequestApplySnapshotChunk) a
|
||||
}
|
||||
|
||||
func (app *Application) PrepareProposal(req abci.RequestPrepareProposal) abci.ResponsePrepareProposal {
|
||||
return abci.ResponsePrepareProposal{BlockData: req.BlockData}
|
||||
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}
|
||||
}
|
||||
|
||||
// ProcessProposal implements part of the Application interface.
|
||||
|
||||
Reference in New Issue
Block a user