Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrExceedTransactionCount = errors.New("exceed transaction count") ErrExceedSignatureCount = errors.New("exceed signature count") ErrMismatchSignaturesCount = errors.New("mismatch signatures count") ErrExceedTimeoutCount = errors.New("exceed timeout count") ErrExceedTableAppendMessageCount = errors.New("exceed table append message count") ErrInvalidBlockFormat = errors.New("invalid block format") ErrInvalidBlockHeaderFormat = errors.New("invalid block header format") )
block errors
Functions ¶
This section is empty.
Types ¶
type Block ¶
Block includes a block header and a block body
func (*Block) MarshalJSON ¶
MarshalJSON is a marshaler function
type Body ¶
type Body struct {
Transactions []transaction.Transaction //MAXLEN : 65535
TransactionSignatures [][]common.Signature //MAXLEN : 65536
Tran *data.Transactor
}
Body is the set of transactions with validation informations
func (*Body) MarshalJSON ¶
MarshalJSON is a marshaler function
type Header ¶
type Header struct {
chain.Base
ChainCoord common.Coordinate
LevelRootHash hash.Hash256
ContextHash hash.Hash256
Formulator common.Address
TimeoutCount uint32
}
Header is validation informations
func (*Header) MarshalJSON ¶
MarshalJSON is a marshaler function
type ObserverSigned ¶
ObserverSigned is observer signatures and the generator signature of the block
Click to show internal directories.
Click to hide internal directories.