Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
Header *Header `json:"-"`
MinerID common.Key `json:"miner_id"`
Round int64 `json:"round"`
RoundRandomSeed int64 `json:"round_random_seed"`
RoundTimeoutCount int `json:"round_timeout_count"`
Hash common.Key `json:"hash"`
Signature string `json:"signature"`
ChainID common.Key `json:"chain_id"`
ChainWeight float64 `json:"chain_weight"`
RunningTxnCount int64 `json:"running_txn_count"`
Version string `json:"version"`
CreationDate common.Timestamp `json:"creation_date"`
MagicBlockHash string `json:"magic_block_hash"`
PrevHash string `json:"prev_hash"`
ClientStateHash Key `json:"state_hash"`
Txns []*transaction.Transaction `json:"transactions,omitempty"`
}
Block - data structure that holds the block data
type Header ¶
type Header struct {
Version string `json:"version,omitempty"`
CreationDate int64 `json:"creation_date,omitempty"`
Hash string `json:"hash,omitempty"`
MinerID string `json:"miner_id,omitempty"`
Round int64 `json:"round,omitempty"`
RoundRandomSeed int64 `json:"round_random_seed,omitempy"`
MerkleTreeRoot string `json:"merkle_tree_root,omitempty"`
StateHash string `json:"state_hash,omitempty"`
ReceiptMerkleTreeRoot string `json:"receipt_merkle_tree_root,omitempty"`
NumTxns int64 `json:"num_txns,omitempty"`
}
func (*Header) IsBlockExtends ¶
Click to show internal directories.
Click to hide internal directories.