Browse Source

update ResponseCheckTx (#306)

pull/7804/head
Aleksandr Bezobchuk 4 years ago
committed by GitHub
parent
commit
89d381f7cf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions
  1. +4
    -3
      proto/abci/types.proto
  2. +3
    -0
      spec/abci/abci.md
  3. +0
    -2
      spec/abci/apps.md

+ 4
- 3
proto/abci/types.proto View File

@ -195,9 +195,10 @@ message ResponseCheckTx {
string info = 4; // nondeterministic string info = 4; // nondeterministic
int64 gas_wanted = 5 [json_name = "gas_wanted"]; int64 gas_wanted = 5 [json_name = "gas_wanted"];
int64 gas_used = 6 [json_name = "gas_used"]; int64 gas_used = 6 [json_name = "gas_used"];
repeated Event events = 7
[(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"];
string codespace = 8;
repeated Event events = 7 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "events,omitempty"];
string codespace = 8;
string sender = 9;
int64 priority = 10;
} }
message ResponseDeliverTx { message ResponseDeliverTx {


+ 3
- 0
spec/abci/abci.md View File

@ -377,8 +377,11 @@ via light client.
| gas_used | int64 | Amount of gas consumed by transaction. | 6 | | gas_used | int64 | Amount of gas consumed by transaction. | 6 |
| events | repeated [Event](#events) | Type & Key-Value events for indexing transactions (eg. by account). | 7 | | events | repeated [Event](#events) | Type & Key-Value events for indexing transactions (eg. by account). | 7 |
| codespace | string | Namespace for the `code`. | 8 | | codespace | string | Namespace for the `code`. | 8 |
| sender | string | The transaction's sender (e.g. the signer) | 9 |
| priority | int64 | The transaction's priority (for mempool ordering) | 10 |
- **Usage**: - **Usage**:
- Technically optional - not involved in processing blocks. - Technically optional - not involved in processing blocks.
- Guardian of the mempool: every node runs CheckTx before letting a - Guardian of the mempool: every node runs CheckTx before letting a
transaction into its local mempool. transaction into its local mempool.


+ 0
- 2
spec/abci/apps.md View File

@ -167,8 +167,6 @@ and/or restore state sync snapshots to a local node being bootstrapped.
## Transaction Results ## Transaction Results
`ResponseCheckTx` and `ResponseDeliverTx` contain the same fields.
The `Info` and `Log` fields are non-deterministic values for debugging/convenience purposes The `Info` and `Log` fields are non-deterministic values for debugging/convenience purposes
that are otherwise ignored. that are otherwise ignored.


Loading…
Cancel
Save