Browse Source

update spec document to reflect ADDED behavior

pull/8176/head
William Banfield 3 years ago
parent
commit
c74df714d4
No known key found for this signature in database GPG Key ID: EFAD3442BF29E3AC
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      spec/abci++/abci++_methods_002_draft.md

+ 2
- 2
spec/abci++/abci++_methods_002_draft.md View File

@ -378,7 +378,7 @@ and _p_'s _validValue_ is `nil`:
`ResponsePrepareProposal.validator_updates`, and `ResponsePrepareProposal.consensus_param_updates`. `ResponsePrepareProposal.validator_updates`, and `ResponsePrepareProposal.consensus_param_updates`.
* in both modes, the Application can manipulate transactions * in both modes, the Application can manipulate transactions
* leave transactions untouched - `TxAction = UNMODIFIED` * leave transactions untouched - `TxAction = UNMODIFIED`
* add new transactions (not previously in the mempool) - `TxAction = ADDED`
* add new transactions directly to the proposal - `TxAction = ADDED`
* remove transactions (invalid) from the proposal and from the mempool - `TxAction = REMOVED` * remove transactions (invalid) from the proposal and from the mempool - `TxAction = REMOVED`
* remove transactions from the proposal but not from the mempool (effectively _delaying_ them) - the * remove transactions from the proposal but not from the mempool (effectively _delaying_ them) - the
Application removes the transaction from the list Application removes the transaction from the list
@ -840,7 +840,7 @@ enum TxAction {
* **Usage**: * **Usage**:
* If `Action` is `UNKNOWN`, a problem happened in the Application. Tendermint will assume the application is faulty and crash. * If `Action` is `UNKNOWN`, a problem happened in the Application. Tendermint will assume the application is faulty and crash.
* If `Action` is `UNMODIFIED`, Tendermint includes the transaction in the proposal. Nothing to do on the mempool. * If `Action` is `UNMODIFIED`, Tendermint includes the transaction in the proposal. Nothing to do on the mempool.
* If `Action` is `ADDED`, Tendermint includes the transaction in the proposal. The transaction is also added to the mempool and gossipped.
* If `Action` is `ADDED`, Tendermint includes the transaction in the proposal.
* If `Action` is `REMOVED`, Tendermint excludes the transaction from the proposal. The transaction is also removed from the mempool if it exists, * If `Action` is `REMOVED`, Tendermint excludes the transaction from the proposal. The transaction is also removed from the mempool if it exists,
similar to `CheckTx` returning _false_. similar to `CheckTx` returning _false_.
### TxRecord ### TxRecord


Loading…
Cancel
Save