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:
Roman Khimov 2024-11-14 22:43:04 +03:00
parent bbec25de43
commit ccbb198a5b
2 changed files with 4 additions and 2 deletions

View file

@ -35,7 +35,9 @@ type Block struct {
// Transaction list.
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
}

View file

@ -75,7 +75,7 @@ type Transaction struct {
hashed bool
// Trimmed indicates this is a transaction from trimmed
// data.
// data, meaning it doesn't have anything but hash.
Trimmed bool
}