Documentation ¶
Index ¶
- func EpochStartGoToCapn(seg *capn.Segment, src EpochStart) capnp.EpochStartCapn
- func EpochStartShardDataGoToCapn(seg *capn.Segment, src *EpochStartShardData) capnp.FinalizedHeadersCapn
- func HeaderGoToCapn(seg *capn.Segment, src *Header) capnp.HeaderCapn
- func MetaBlockGoToCapn(seg *capn.Segment, src *MetaBlock) capnp.MetaBlockCapn
- func MiniBlockGoToCapn(seg *capn.Segment, src *MiniBlock) capnp.MiniBlockCapn
- func MiniBlockHeaderGoToCapn(seg *capn.Segment, src *MiniBlockHeader) capnp.MiniBlockHeaderCapn
- func PeerChangeGoToCapn(seg *capn.Segment, src *PeerChange) capnp.PeerChangeCapn
- func PeerDataGoToCapn(seg *capn.Segment, src *PeerData) capnp.PeerDataCapn
- func ShardDataGoToCapn(seg *capn.Segment, src *ShardData) capnp.ShardDataCapn
- func ShardMiniBlockHeaderGoToCapn(seg *capn.Segment, src *ShardMiniBlockHeader) capnp.ShardMiniBlockHeaderCapn
- type Body
- type EpochStart
- type EpochStartShardData
- type Header
- func (h *Header) CheckChainID(reference []byte) error
- func (h *Header) Clone() data.HeaderHandler
- func (h *Header) GetChainID() []byte
- func (h *Header) GetEpoch() uint32
- func (h *Header) GetLeaderSignature() []byte
- func (h *Header) GetMiniBlockHeadersWithDst(destId uint32) map[string]uint32
- func (h *Header) GetNonce() uint64
- func (h *Header) GetPrevHash() []byte
- func (h *Header) GetPrevRandSeed() []byte
- func (h *Header) GetPubKeysBitmap() []byte
- func (h *Header) GetRandSeed() []byte
- func (h *Header) GetReceiptsHash() []byte
- func (h *Header) GetRootHash() []byte
- func (h *Header) GetRound() uint64
- func (h *Header) GetShardID() uint32
- func (h *Header) GetSignature() []byte
- func (h *Header) GetTimeStamp() uint64
- func (h *Header) GetTxCount() uint32
- func (h *Header) GetValidatorStatsRootHash() []byte
- func (h *Header) IsInterfaceNil() bool
- func (h *Header) IsStartOfEpochBlock() bool
- func (h *Header) ItemsInBody() uint32
- func (h *Header) ItemsInHeader() uint32
- func (h *Header) Load(r io.Reader) error
- func (h *Header) MapMiniBlockHashesToShards() map[string]uint32
- func (h *Header) Save(w io.Writer) error
- func (h *Header) SetChainID(chainID []byte)
- func (h *Header) SetEpoch(e uint32)
- func (h *Header) SetLeaderSignature(sg []byte)
- func (h *Header) SetNonce(n uint64)
- func (h *Header) SetPrevHash(pvHash []byte)
- func (h *Header) SetPrevRandSeed(pvRandSeed []byte)
- func (h *Header) SetPubKeysBitmap(pkbm []byte)
- func (h *Header) SetRandSeed(randSeed []byte)
- func (h *Header) SetRootHash(rHash []byte)
- func (h *Header) SetRound(r uint64)
- func (h *Header) SetShardID(shId uint32)
- func (h *Header) SetSignature(sg []byte)
- func (h *Header) SetTimeStamp(ts uint64)
- func (h *Header) SetTxCount(txCount uint32)
- func (h *Header) SetValidatorStatsRootHash(rHash []byte)
- type MetaBlock
- func (m *MetaBlock) CheckChainID(reference []byte) error
- func (m *MetaBlock) Clone() data.HeaderHandler
- func (m *MetaBlock) GetChainID() []byte
- func (m *MetaBlock) GetEpoch() uint32
- func (m *MetaBlock) GetLeaderSignature() []byte
- func (m *MetaBlock) GetMiniBlockHeadersWithDst(destId uint32) map[string]uint32
- func (m *MetaBlock) GetNonce() uint64
- func (m *MetaBlock) GetPrevHash() []byte
- func (m *MetaBlock) GetPrevRandSeed() []byte
- func (m *MetaBlock) GetPubKeysBitmap() []byte
- func (m *MetaBlock) GetRandSeed() []byte
- func (m *MetaBlock) GetReceiptsHash() []byte
- func (m *MetaBlock) GetRootHash() []byte
- func (m *MetaBlock) GetRound() uint64
- func (m *MetaBlock) GetShardID() uint32
- func (m *MetaBlock) GetSignature() []byte
- func (m *MetaBlock) GetTimeStamp() uint64
- func (m *MetaBlock) GetTxCount() uint32
- func (m *MetaBlock) GetValidatorStatsRootHash() []byte
- func (m *MetaBlock) IsInterfaceNil() bool
- func (m *MetaBlock) IsStartOfEpochBlock() bool
- func (m *MetaBlock) ItemsInBody() uint32
- func (m *MetaBlock) ItemsInHeader() uint32
- func (m *MetaBlock) Load(r io.Reader) error
- func (m *MetaBlock) Save(w io.Writer) error
- func (m *MetaBlock) SetChainID(chainID []byte)
- func (m *MetaBlock) SetEpoch(e uint32)
- func (m *MetaBlock) SetLeaderSignature(sg []byte)
- func (m *MetaBlock) SetNonce(n uint64)
- func (m *MetaBlock) SetPrevHash(pvHash []byte)
- func (m *MetaBlock) SetPrevRandSeed(pvRandSeed []byte)
- func (m *MetaBlock) SetPubKeysBitmap(pkbm []byte)
- func (m *MetaBlock) SetRandSeed(randSeed []byte)
- func (m *MetaBlock) SetRootHash(rHash []byte)
- func (m *MetaBlock) SetRound(r uint64)
- func (m *MetaBlock) SetShardID(_ uint32)
- func (m *MetaBlock) SetSignature(sg []byte)
- func (m *MetaBlock) SetTimeStamp(ts uint64)
- func (m *MetaBlock) SetTxCount(txCount uint32)
- func (m *MetaBlock) SetValidatorStatsRootHash(rHash []byte)
- type MiniBlock
- type MiniBlockHeader
- type MiniBlockSlice
- type PeerAction
- type PeerChange
- type PeerData
- type ShardData
- type ShardMiniBlockHeader
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EpochStartGoToCapn ¶ added in v1.0.67
func EpochStartGoToCapn(seg *capn.Segment, src EpochStart) capnp.EpochStartCapn
EpochStartGoToCapn is a helper function to copy fields from a ShardData object to a ShardDataCapn object
func EpochStartShardDataGoToCapn ¶ added in v1.0.67
func EpochStartShardDataGoToCapn(seg *capn.Segment, src *EpochStartShardData) capnp.FinalizedHeadersCapn
EpochStartShardDataGoToCapn is a helper function to copy fields from a FinalizedHeaderHeader object to a EpochStartShardDataCapn object
func HeaderGoToCapn ¶ added in v1.0.3
func HeaderGoToCapn(seg *capn.Segment, src *Header) capnp.HeaderCapn
HeaderGoToCapn is a helper function to copy fields from a Block Header object to a HeaderCapn object
func MetaBlockGoToCapn ¶ added in v1.0.3
func MetaBlockGoToCapn(seg *capn.Segment, src *MetaBlock) capnp.MetaBlockCapn
MetaBlockGoToCapn is a helper function to copy fields from a MetaBlock object to a MetaBlockCapn object
func MiniBlockGoToCapn ¶ added in v1.0.3
func MiniBlockGoToCapn(seg *capn.Segment, src *MiniBlock) capnp.MiniBlockCapn
MiniBlockGoToCapn is a helper function to copy fields from a MiniBlock object to a MiniBlockCapn object
func MiniBlockHeaderGoToCapn ¶ added in v1.0.3
func MiniBlockHeaderGoToCapn(seg *capn.Segment, src *MiniBlockHeader) capnp.MiniBlockHeaderCapn
MiniBlockHeaderGoToCapn is a helper function to copy fields from a MiniBlockHeader object to a MiniBlockHeaderCapn object
func PeerChangeGoToCapn ¶ added in v1.0.3
func PeerChangeGoToCapn(seg *capn.Segment, src *PeerChange) capnp.PeerChangeCapn
PeerChangeGoToCapn is a helper function to copy fields from a PeerChange object to a PeerChangeGoToCapn object
func PeerDataGoToCapn ¶ added in v1.0.3
func PeerDataGoToCapn(seg *capn.Segment, src *PeerData) capnp.PeerDataCapn
PeerDataGoToCapn is a helper function to copy fields from a Peer Data object to a PeerDataCapn object
func ShardDataGoToCapn ¶ added in v1.0.3
func ShardDataGoToCapn(seg *capn.Segment, src *ShardData) capnp.ShardDataCapn
ShardDataGoToCapn is a helper function to copy fields from a ShardData object to a ShardDataCapn object
func ShardMiniBlockHeaderGoToCapn ¶ added in v1.0.3
func ShardMiniBlockHeaderGoToCapn(seg *capn.Segment, src *ShardMiniBlockHeader) capnp.ShardMiniBlockHeaderCapn
ShardMiniBlockHeaderGoToCapn is a helper function to copy fields from a ShardMiniBlockHeader object to a ShardMiniBlockHeaderCapn object
Types ¶
type Body ¶
type Body []*MiniBlock
Body should be used when referring to the full list of mini blocks that forms a block body
func (Body) IntegrityAndValidity ¶
IntegrityAndValidity checks if data is valid
func (Body) IsInterfaceNil ¶
IsInterfaceNil returns true if there is no value under the interface
type EpochStart ¶
type EpochStart struct {
LastFinalizedHeaders []EpochStartShardData `capid:"1"`
}
EpochStart holds the block information for end-of-epoch
func EpochStartCapnToGo ¶ added in v1.0.67
func EpochStartCapnToGo(src capnp.EpochStartCapn, dest *EpochStart) *EpochStart
EpochStartCapnToGo is a helper function to copy fields from a ShardDataCapn object to a ShardData object
type EpochStartShardData ¶
type EpochStartShardData struct { ShardId uint32 `capid:"0"` HeaderHash []byte `capid:"1"` RootHash []byte `capid:"2"` FirstPendingMetaBlock []byte `capid:"3"` LastFinishedMetaBlock []byte `capid:"4"` PendingMiniBlockHeaders []ShardMiniBlockHeader `capid:"5"` }
EpochStartShardData hold the last finalized headers hash and state root hash
func EpochStartShardDataCapnToGo ¶ added in v1.0.67
func EpochStartShardDataCapnToGo(src capnp.FinalizedHeadersCapn, dest *EpochStartShardData) *EpochStartShardData
EpochStartShardDataCapnToGo is a helper function to copy fields from a FinalizedHeaderCapn object to a EpochStartShardData object
type Header ¶
type Header struct { Nonce uint64 `capid:"0"` PrevHash []byte `capid:"1"` PrevRandSeed []byte `capid:"2"` RandSeed []byte `capid:"3"` PubKeysBitmap []byte `capid:"4"` ShardId uint32 `capid:"5"` TimeStamp uint64 `capid:"6"` Round uint64 `capid:"7"` Epoch uint32 `capid:"8"` BlockBodyType Type `capid:"9"` Signature []byte `capid:"10"` LeaderSignature []byte `capid:"11"` MiniBlockHeaders []MiniBlockHeader `capid:"12"` PeerChanges []PeerChange `capid:"13"` RootHash []byte `capid:"14"` ValidatorStatsRootHash []byte `capid:"15"` MetaBlockHashes [][]byte `capid:"16"` EpochStartMetaHash []byte `capid:"17"` TxCount uint32 `capid:"18"` ReceiptsHash []byte `capid:"19"` ChainID []byte `capid:"20"` }
Header holds the metadata of a block. This is the part that is being hashed and run through consensus. The header holds the hash of the body and also the link to the previous block header hash
func HeaderCapnToGo ¶ added in v1.0.3
func HeaderCapnToGo(src capnp.HeaderCapn, dest *Header) *Header
HeaderCapnToGo is a helper function to copy fields from a HeaderCapn object to a Header object
func (*Header) CheckChainID ¶
CheckChainID returns nil if the header's chain ID matches the one provided otherwise, it will error
func (*Header) Clone ¶
func (h *Header) Clone() data.HeaderHandler
Clone returns a clone of the object
func (*Header) GetChainID ¶
GetChainID gets the chain ID on which this block is valid on
func (*Header) GetLeaderSignature ¶
GetLeaderSignature returns the leader's signature
func (*Header) GetMiniBlockHeadersWithDst ¶
GetMiniBlockHeadersWithDst as a map of hashes and sender IDs
func (*Header) GetPrevHash ¶
GetPrevHash returns previous block header hash
func (*Header) GetPrevRandSeed ¶
GetPrevRandSeed returns previous random seed
func (*Header) GetPubKeysBitmap ¶
GetPubKeysBitmap return signers bitmap
func (*Header) GetRandSeed ¶
GetRandSeed returns the random seed
func (*Header) GetReceiptsHash ¶
GetReceiptsHash returns the hash of the receipts and intra-shard smart contract results
func (*Header) GetRootHash ¶
GetRootHash returns the roothash from header
func (*Header) GetSignature ¶
GetSignature returns signed data
func (*Header) GetTimeStamp ¶
GetTimeStamp returns the time stamp
func (*Header) GetTxCount ¶
GetTxCount returns transaction count in the block associated with this header
func (*Header) GetValidatorStatsRootHash ¶
GetValidatorStatsRootHash returns the root hash for the validator statistics trie at this current block
func (*Header) IsInterfaceNil ¶
IsInterfaceNil returns true if there is no value under the interface
func (*Header) IsStartOfEpochBlock ¶
IsStartOfEpochBlock verifies if the block is of type start of epoch
func (*Header) ItemsInBody ¶ added in v1.0.11
ItemsInBody gets the number of items(hashes) added in block body
func (*Header) ItemsInHeader ¶ added in v1.0.11
ItemsInHeader gets the number of items(hashes) added in block header
func (*Header) Load ¶ added in v1.0.3
Load loads the data from the stream into a Block Header object through Capnp protocol
func (*Header) MapMiniBlockHashesToShards ¶
MapMiniBlockHashesToShards is a map of mini block hashes and sender IDs
func (*Header) Save ¶ added in v1.0.3
Save saves the serialized data of a Block Header into a stream through Capnp protocol
func (*Header) SetChainID ¶
SetChainID sets the chain ID on which this block is valid on
func (*Header) SetLeaderSignature ¶
SetLeaderSignature will set the leader's signature
func (*Header) SetPrevRandSeed ¶
SetPrevRandSeed sets previous random seed
func (*Header) SetPubKeysBitmap ¶
SetPubKeysBitmap sets publick key bitmap
func (*Header) SetRandSeed ¶
SetRandSeed sets previous random seed
func (*Header) SetShardID ¶
SetShardID sets header shard ID
func (*Header) SetSignature ¶
SetSignature sets header signature
func (*Header) SetTimeStamp ¶
SetTimeStamp sets header timestamp
func (*Header) SetTxCount ¶
SetTxCount sets the transaction count of the block associated with this header
func (*Header) SetValidatorStatsRootHash ¶
SetValidatorStatsRootHash set's the root hash for the validator statistics trie
type MetaBlock ¶
type MetaBlock struct { Nonce uint64 `capid:"0"` Epoch uint32 `capid:"1"` Round uint64 `capid:"2"` TimeStamp uint64 `capid:"3"` ShardInfo []ShardData `capid:"4"` PeerInfo []PeerData `capid:"5"` Signature []byte `capid:"6"` LeaderSignature []byte `capid:"7"` PubKeysBitmap []byte `capid:"8"` PrevHash []byte `capid:"9"` PrevRandSeed []byte `capid:"10"` RandSeed []byte `capid:"11"` RootHash []byte `capid:"12"` ValidatorStatsRootHash []byte `capid:"13"` TxCount uint32 `capid:"14"` MiniBlockHeaders []MiniBlockHeader `capid:"15"` ReceiptsHash []byte `capid:"16"` EpochStart EpochStart `capid:"17"` ChainID []byte `capid:"18"` }
MetaBlock holds the data that will be saved to the metachain each round
func MetaBlockCapnToGo ¶ added in v1.0.3
func MetaBlockCapnToGo(src capnp.MetaBlockCapn, dest *MetaBlock) *MetaBlock
MetaBlockCapnToGo is a helper function to copy fields from a MetaBlockCapn object to a MetaBlock object
func (*MetaBlock) CheckChainID ¶
CheckChainID returns nil if the header's chain ID matches the one provided otherwise, it will error
func (*MetaBlock) Clone ¶
func (m *MetaBlock) Clone() data.HeaderHandler
Clone will return a clone of the object
func (*MetaBlock) GetChainID ¶
GetChainID gets the chain ID on which this block is valid on
func (*MetaBlock) GetLeaderSignature ¶
GetLeaderSignature returns the signature of the leader
func (*MetaBlock) GetMiniBlockHeadersWithDst ¶
GetMiniBlockHeadersWithDst as a map of hashes and sender IDs
func (*MetaBlock) GetPrevHash ¶
GetPrevHash returns previous block header hash
func (*MetaBlock) GetPrevRandSeed ¶
GetPrevRandSeed gets the previous random seed
func (*MetaBlock) GetPubKeysBitmap ¶
GetPubKeysBitmap return signers bitmap
func (*MetaBlock) GetRandSeed ¶
GetRandSeed gets the current random seed
func (*MetaBlock) GetReceiptsHash ¶
GetReceiptsHash returns the hash of the receipts and intra-shard smart contract results
func (*MetaBlock) GetRootHash ¶
GetRootHash returns the roothash from header
func (*MetaBlock) GetShardID ¶
GetShardID returns the metachain shard id
func (*MetaBlock) GetSignature ¶
GetSignature return signed data
func (*MetaBlock) GetTimeStamp ¶
GetTimeStamp returns the time stamp
func (*MetaBlock) GetTxCount ¶
GetTxCount returns transaction count in the current meta block
func (*MetaBlock) GetValidatorStatsRootHash ¶
GetValidatorStatsRootHash returns the root hash for the validator statistics trie at this current block
func (*MetaBlock) IsInterfaceNil ¶
IsInterfaceNil returns true if there is no value under the interface
func (*MetaBlock) IsStartOfEpochBlock ¶
IsStartOfEpochBlock verifies if the block is of type start of epoch
func (*MetaBlock) ItemsInBody ¶ added in v1.0.11
ItemsInBody gets the number of items(hashes) added in block body
func (*MetaBlock) ItemsInHeader ¶ added in v1.0.11
ItemsInHeader gets the number of items(hashes) added in block header
func (*MetaBlock) Load ¶ added in v1.0.3
Load loads the data from the stream into a MetaBlock object through Capnp protocol
func (*MetaBlock) Save ¶ added in v1.0.3
Save saves the serialized data of a MetaBlock into a stream through Capnp protocol
func (*MetaBlock) SetChainID ¶
SetChainID sets the chain ID on which this block is valid on
func (*MetaBlock) SetLeaderSignature ¶
SetLeaderSignature will set the leader's signature
func (*MetaBlock) SetPrevHash ¶
SetPrevHash sets prev hash
func (*MetaBlock) SetPrevRandSeed ¶
SetPrevRandSeed sets the previous randomness seed
func (*MetaBlock) SetPubKeysBitmap ¶
SetPubKeysBitmap sets publick key bitmap
func (*MetaBlock) SetRandSeed ¶
SetRandSeed sets the current random seed
func (*MetaBlock) SetRootHash ¶
SetRootHash sets root hash
func (*MetaBlock) SetShardID ¶
SetShardID sets header shard ID
func (*MetaBlock) SetSignature ¶
SetSignature set header signature
func (*MetaBlock) SetTimeStamp ¶
SetTimeStamp sets header timestamp
func (*MetaBlock) SetTxCount ¶
SetTxCount sets the transaction count of the current meta block
func (*MetaBlock) SetValidatorStatsRootHash ¶
SetValidatorStatsRootHash set's the root hash for the validator statistics trie
type MiniBlock ¶
type MiniBlock struct { TxHashes [][]byte `capid:"0"` ReceiverShardID uint32 `capid:"1"` SenderShardID uint32 `capid:"2"` Type Type `capid:"3"` }
MiniBlock holds the transactions and the sender/destination shard ids
func MiniBlockCapnToGo ¶ added in v1.0.3
func MiniBlockCapnToGo(src capnp.MiniBlockCapn, dest *MiniBlock) *MiniBlock
MiniBlockCapnToGo is a helper function to copy fields from a MiniBlockCapn object to a MiniBlock object
type MiniBlockHeader ¶
type MiniBlockHeader struct { Hash []byte `capid:"0"` SenderShardID uint32 `capid:"1"` ReceiverShardID uint32 `capid:"2"` TxCount uint32 `capid:"3"` Type Type `capid:"4"` }
MiniBlockHeader holds the hash of a miniblock together with sender/deastination shard id pair. The shard ids are both kept in order to differentiate between cross and single shard transactions
func MiniBlockHeaderCapnToGo ¶ added in v1.0.3
func MiniBlockHeaderCapnToGo(src capnp.MiniBlockHeaderCapn, dest *MiniBlockHeader) *MiniBlockHeader
MiniBlockHeaderCapnToGo is a helper function to copy fields from a MiniBlockHeaderCapn object to a MiniBlockHeader object
type MiniBlockSlice ¶
type MiniBlockSlice []*MiniBlock
MiniBlockSlice should be used when referring to subset of mini blocks that is not
necessarily representing a full block body
type PeerAction ¶
type PeerAction uint8
PeerAction type represents the possible events that a node can trigger for the metachain to notarize
const ( PeerRegistration PeerAction = iota + 1 PeerUnstaking PeerDeregistration PeerJailed PeerUnJailed PeerSlashed PeerReStake )
Constants mapping the actions that a node can take
func (PeerAction) String ¶
func (pa PeerAction) String() string
type PeerChange ¶
PeerChange holds a change in one peer to shard assignation
func PeerChangeCapnToGo ¶ added in v1.0.3
func PeerChangeCapnToGo(src capnp.PeerChangeCapn, dest *PeerChange) *PeerChange
PeerChangeCapnToGo is a helper function to copy fields from a PeerChangeCapn object to a PeerChange object
type PeerData ¶
type PeerData struct { Address []byte `capid:"0"` PublicKey []byte `capid:"1"` Action PeerAction `capid:"2"` TimeStamp uint64 `capid:"3"` ValueChange *big.Int `capid:"4"` }
PeerData holds information about actions taken by a peer:
- a peer can register with an amount to become a validator
- a peer can choose to deregister and get back the deposited value
func PeerDataCapnToGo ¶ added in v1.0.3
func PeerDataCapnToGo(src capnp.PeerDataCapn, dest *PeerData) *PeerData
PeerDataCapnToGo is a helper function to copy fields from a PeerDataCapn object to a PeerData object
type ShardData ¶
type ShardData struct { ShardID uint32 `capid:"0"` HeaderHash []byte `capid:"1"` ShardMiniBlockHeaders []ShardMiniBlockHeader `capid:"2"` PrevRandSeed []byte `capid:"3"` PubKeysBitmap []byte `capid:"4"` Signature []byte `capid:"5"` TxCount uint32 `capid:"6"` Round uint64 `capid:"7"` PrevHash []byte `capid:"8"` Nonce uint64 `capid:"9"` }
ShardData holds the block information sent by the shards to the metachain
func ShardDataCapnToGo ¶ added in v1.0.3
func ShardDataCapnToGo(src capnp.ShardDataCapn, dest *ShardData) *ShardData
ShardDataCapnToGo is a helper function to copy fields from a ShardDataCapn object to a ShardData object
type ShardMiniBlockHeader ¶
type ShardMiniBlockHeader struct { Hash []byte `capid:"0"` ReceiverShardID uint32 `capid:"1"` SenderShardID uint32 `capid:"2"` TxCount uint32 `capid:"3"` }
ShardMiniBlockHeader holds data for one shard miniblock header
func ShardMiniBlockHeaderCapnToGo ¶ added in v1.0.3
func ShardMiniBlockHeaderCapnToGo(src capnp.ShardMiniBlockHeaderCapn, dest *ShardMiniBlockHeader) *ShardMiniBlockHeader
ShardMiniBlockHeaderCapnToGo is a helper function to copy fields from a ShardMiniBlockHeaderCapn object to a ShardMiniBlockHeader object
type Type ¶
type Type uint8
Type identifies the type of the block
const ( // TxBlock identifies a miniblock holding transactions TxBlock Type = 0 // StateBlock identifies a miniblock holding account state StateBlock Type = 1 // PeerBlock identifies a miniblock holding peer assignation PeerBlock Type = 2 // SmartContractResultBlock identifies a miniblock holding smartcontractresults SmartContractResultBlock Type = 3 // RewardsBlock identifies a miniblock holding accumulated rewards, both system generated and from tx fees RewardsBlock Type = 4 // InvalidBlock identifies a miniblock holding invalid transactions InvalidBlock Type = 5 // ReceiptBlock identifies a miniblock holding receipts ReceiptBlock Type = 6 )