mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-24 22:32:15 +00:00
docs/spec/blockchain: remove tags from result for now
This commit is contained in:
parent
8fcabe8b05
commit
6fd79d1545
@ -8,10 +8,10 @@ transactions are never included in blocks, but their Merkle roots are - the stat
|
|||||||
|
|
||||||
Note that the `State` object itself is an implementation detail, since it is never
|
Note that the `State` object itself is an implementation detail, since it is never
|
||||||
included in a block or gossipped over the network, and we never compute
|
included in a block or gossipped over the network, and we never compute
|
||||||
its hash. However, the types it contains are part of the specification, since
|
its hash. Thus we do not include here details of how the `State` object is
|
||||||
their Merkle roots are included in blocks.
|
persisted or queried. That said, the types it contains are part of the specification, since
|
||||||
|
their Merkle roots are included in blocks and their values are used in
|
||||||
Details on an implementation of `State` with persistence is forthcoming, see [this issue](https://github.com/tendermint/tendermint/issues/1152)
|
validation.
|
||||||
|
|
||||||
```go
|
```go
|
||||||
type State struct {
|
type State struct {
|
||||||
@ -32,20 +32,15 @@ type State struct {
|
|||||||
type Result struct {
|
type Result struct {
|
||||||
Code uint32
|
Code uint32
|
||||||
Data []byte
|
Data []byte
|
||||||
Tags []KVPair
|
|
||||||
}
|
|
||||||
|
|
||||||
type KVPair struct {
|
|
||||||
Key []byte
|
|
||||||
Value []byte
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
`Result` is the result of executing a transaction against the application.
|
`Result` is the result of executing a transaction against the application.
|
||||||
It returns a result code, an arbitrary byte array (ie. a return value),
|
It returns a result code and an arbitrary byte array (ie. a return value).
|
||||||
and a list of key-value pairs ordered by key. The key-value pairs, or tags,
|
|
||||||
can be used to index transactions according to their "effects", which are
|
NOTE: the Result needs to be updated to include more fields returned from
|
||||||
represented in the tags.
|
processing transactions, like gas variables and tags - see
|
||||||
|
[issue 1007](https://github.com/tendermint/tendermint/issues/1007).
|
||||||
|
|
||||||
### Validator
|
### Validator
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user