mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-29 03:41:45 +00:00
core: document trimmed transactions better
Eventually we can drop them, but they were present for a long long time. Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
parent
bbec25de43
commit
ccbb198a5b
2 changed files with 4 additions and 2 deletions
|
@ -35,7 +35,9 @@ type Block struct {
|
||||||
// Transaction list.
|
// Transaction list.
|
||||||
Transactions []*transaction.Transaction
|
Transactions []*transaction.Transaction
|
||||||
|
|
||||||
// True if this block is created from trimmed data.
|
// True if this block is created from trimmed data (with a proper
|
||||||
|
// header and hashes-only transactions). Not a part of a real
|
||||||
|
// block and is used only by internal packages.
|
||||||
Trimmed bool
|
Trimmed bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ type Transaction struct {
|
||||||
hashed bool
|
hashed bool
|
||||||
|
|
||||||
// Trimmed indicates this is a transaction from trimmed
|
// Trimmed indicates this is a transaction from trimmed
|
||||||
// data.
|
// data, meaning it doesn't have anything but hash.
|
||||||
Trimmed bool
|
Trimmed bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue