mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-25 03:47:18 +00:00
core: a bit better field explanations for header/transaction
Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
parent
933d522b82
commit
9cc16d73f2
2 changed files with 5 additions and 4 deletions
|
@ -19,7 +19,7 @@ const VersionInitial uint32 = 0
|
|||
// Header holds the base info of a block. Fields follow the P2P format of the
|
||||
// N3 block header unless noted specifically.
|
||||
type Header struct {
|
||||
// Version of the block.
|
||||
// Version of the block, currently only 0.
|
||||
Version uint32
|
||||
|
||||
// hash of the previous block.
|
||||
|
@ -43,7 +43,8 @@ type Header struct {
|
|||
// Contract address of the next miner
|
||||
NextConsensus util.Uint160
|
||||
|
||||
// Script used to validate the block
|
||||
// Witness scripts used for block validation. These scripts
|
||||
// are not a part of a hashable field set.
|
||||
Script transaction.Witness
|
||||
|
||||
// StateRootEnabled specifies if the header contains state root.
|
||||
|
|
|
@ -34,13 +34,13 @@ var ErrInvalidWitnessNum = errors.New("number of signers doesn't match witnesses
|
|||
|
||||
// Transaction is a process recorded in the Neo blockchain.
|
||||
type Transaction struct {
|
||||
// The trading version which is currently 0.
|
||||
// Version of the binary transaction format, currently only 0.
|
||||
Version uint8
|
||||
|
||||
// Random number to avoid hash collision.
|
||||
Nonce uint32
|
||||
|
||||
// Fee to be burned.
|
||||
// Fee to be used for script execution and burned.
|
||||
SystemFee int64
|
||||
|
||||
// Fee to be distributed to consensus nodes.
|
||||
|
|
Loading…
Reference in a new issue