diff --git a/pkg/core/block/header.go b/pkg/core/block/header.go index 9ca72f1b6..2edd763dc 100644 --- a/pkg/core/block/header.go +++ b/pkg/core/block/header.go @@ -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. diff --git a/pkg/core/transaction/transaction.go b/pkg/core/transaction/transaction.go index e903329e9..61d605270 100644 --- a/pkg/core/transaction/transaction.go +++ b/pkg/core/transaction/transaction.go @@ -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.