mirror of
https://github.com/tendermint/tendermint.git
synced 2026-04-23 17:20:33 +00:00
spec: update abci events (#151)
This commit is contained in:
@@ -69,26 +69,26 @@ Example:
|
||||
Events: []abci.Event{
|
||||
{
|
||||
Type: "validator.provisions",
|
||||
Attributes: kv.Pairs{
|
||||
kv.Pair{Key: []byte("address"), Value: []byte("...")},
|
||||
kv.Pair{Key: []byte("amount"), Value: []byte("...")},
|
||||
kv.Pair{Key: []byte("balance"), Value: []byte("...")},
|
||||
Attributes: []abci.EventAttribute{
|
||||
abci.EventAttribute{Key: []byte("address"), Value: []byte("..."), Index: true},
|
||||
abci.EventAttribute{Key: []byte("amount"), Value: []byte("..."), Index: true},
|
||||
abci.EventAttribute{Key: []byte("balance"), Value: []byte("..."), Index: true},
|
||||
},
|
||||
},
|
||||
{
|
||||
Type: "validator.provisions",
|
||||
Attributes: kv.Pairs{
|
||||
kv.Pair{Key: []byte("address"), Value: []byte("...")},
|
||||
kv.Pair{Key: []byte("amount"), Value: []byte("...")},
|
||||
kv.Pair{Key: []byte("balance"), Value: []byte("...")},
|
||||
Attributes: []abci.EventAttribute{
|
||||
abci.EventAttribute{Key: []byte("address"), Value: []byte("..."), Index: true},
|
||||
abci.EventAttribute{Key: []byte("amount"), Value: []byte("..."), Index: false},
|
||||
abci.EventAttribute{Key: []byte("balance"), Value: []byte("..."), Index: false},
|
||||
},
|
||||
},
|
||||
{
|
||||
Type: "validator.slashed",
|
||||
Attributes: kv.Pairs{
|
||||
kv.Pair{Key: []byte("address"), Value: []byte("...")},
|
||||
kv.Pair{Key: []byte("amount"), Value: []byte("...")},
|
||||
kv.Pair{Key: []byte("reason"), Value: []byte("...")},
|
||||
Attributes: []abci.EventAttribute{
|
||||
abci.EventAttribute{Key: []byte("address"), Value: []byte("..."), Index: false},
|
||||
abci.EventAttribute{Key: []byte("amount"), Value: []byte("..."), Index: true},
|
||||
abci.EventAttribute{Key: []byte("reason"), Value: []byte("..."), Index: true},
|
||||
},
|
||||
},
|
||||
// ...
|
||||
@@ -305,7 +305,7 @@ via light client.
|
||||
- `ByzantineValidators ([]Evidence)`: List of evidence of
|
||||
validators that acted maliciously.
|
||||
- **Response**:
|
||||
- `Tags ([]kv.Pair)`: Key-Value tags for filtering and indexing
|
||||
- `Events ([]abci.Event)`: Type & Key-Value events for indexing
|
||||
- **Usage**:
|
||||
- Signals the beginning of a new block. Called prior to
|
||||
any DeliverTxs.
|
||||
@@ -332,7 +332,7 @@ via light client.
|
||||
be non-deterministic.
|
||||
- `GasWanted (int64)`: Amount of gas requested for transaction.
|
||||
- `GasUsed (int64)`: Amount of gas consumed by transaction.
|
||||
- `Tags ([]kv.Pair)`: Key-Value tags for filtering and indexing
|
||||
- `Events ([]abci.Event)`: Type & Key-Value events for indexing
|
||||
transactions (eg. by account).
|
||||
- `Codespace (string)`: Namespace for the `Code`.
|
||||
- **Usage**:
|
||||
@@ -360,7 +360,7 @@ via light client.
|
||||
be non-deterministic.
|
||||
- `GasWanted (int64)`: Amount of gas requested for transaction.
|
||||
- `GasUsed (int64)`: Amount of gas consumed by transaction.
|
||||
- `Tags ([]kv.Pair)`: Key-Value tags for filtering and indexing
|
||||
- `Events ([]abci.Event)`: Type & Key-Value events for indexing
|
||||
transactions (eg. by account).
|
||||
- `Codespace (string)`: Namespace for the `Code`.
|
||||
- **Usage**:
|
||||
@@ -377,7 +377,7 @@ via light client.
|
||||
voting power to 0 to remove).
|
||||
- `ConsensusParamUpdates (ConsensusParams)`: Changes to
|
||||
consensus-critical time, size, and other parameters.
|
||||
- `Tags ([]kv.Pair)`: Key-Value tags for filtering and indexing
|
||||
- `Events ([]abci.Event)`: Type & Key-Value events for indexing
|
||||
- **Usage**:
|
||||
- Signals the end of a block.
|
||||
- Called after all transactions, prior to each Commit.
|
||||
|
||||
@@ -196,7 +196,7 @@ not broadcasted to other peers and not included in a proposal block.
|
||||
`Data` contains the result of the CheckTx transaction execution, if any. It is
|
||||
semantically meaningless to Tendermint.
|
||||
|
||||
`Tags` include any tags for the execution, though since the transaction has not
|
||||
`Events` include any events for the execution, though since the transaction has not
|
||||
been committed yet, they are effectively ignored by Tendermint.
|
||||
|
||||
### DeliverTx
|
||||
|
||||
@@ -68,7 +68,7 @@ type Result struct {
|
||||
It returns a result code and an arbitrary byte array (ie. a return value).
|
||||
|
||||
NOTE: the Result needs to be updated to include more fields returned from
|
||||
processing transactions, like gas variables and tags - see
|
||||
processing transactions, like gas variables and events - see
|
||||
[issue 1007](https://github.com/tendermint/tendermint/issues/1007).
|
||||
|
||||
### Validator
|
||||
|
||||
Reference in New Issue
Block a user