Documentation ¶
Index ¶
- Variables
- type Body
- func (b *Body) Clone() data.BodyHandler
- func (*Body) Descriptor() ([]byte, []int)
- func (this *Body) Equal(that interface{}) bool
- func (m *Body) GetMiniBlocks() []*MiniBlock
- func (this *Body) GoString() string
- func (b *Body) IntegrityAndValidity() error
- func (b *Body) IsInterfaceNil() bool
- func (m *Body) Marshal() (dAtA []byte, err error)
- func (m *Body) MarshalTo(dAtA []byte) (int, error)
- func (m *Body) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Body) ProtoMessage()
- func (m *Body) Reset()
- func (m *Body) Size() (n int)
- func (this *Body) String() string
- func (m *Body) Unmarshal(dAtA []byte) error
- func (m *Body) XXX_DiscardUnknown()
- func (m *Body) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Body) XXX_Merge(src proto.Message)
- func (m *Body) XXX_Size() int
- func (m *Body) XXX_Unmarshal(b []byte) error
- type BodyHeaderPair
- func (*BodyHeaderPair) Descriptor() ([]byte, []int)
- func (this *BodyHeaderPair) Equal(that interface{}) bool
- func (m *BodyHeaderPair) GetBody() []byte
- func (m *BodyHeaderPair) GetHeader() []byte
- func (this *BodyHeaderPair) GoString() string
- func (m *BodyHeaderPair) Marshal() (dAtA []byte, err error)
- func (m *BodyHeaderPair) MarshalTo(dAtA []byte) (int, error)
- func (m *BodyHeaderPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BodyHeaderPair) ProtoMessage()
- func (m *BodyHeaderPair) Reset()
- func (m *BodyHeaderPair) Size() (n int)
- func (this *BodyHeaderPair) String() string
- func (m *BodyHeaderPair) Unmarshal(dAtA []byte) error
- func (m *BodyHeaderPair) XXX_DiscardUnknown()
- func (m *BodyHeaderPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BodyHeaderPair) XXX_Merge(src proto.Message)
- func (m *BodyHeaderPair) XXX_Size() int
- func (m *BodyHeaderPair) XXX_Unmarshal(b []byte) error
- type Economics
- func (*Economics) Descriptor() ([]byte, []int)
- func (this *Economics) Equal(that interface{}) bool
- func (m *Economics) GetNodePrice() *math_big.Int
- func (m *Economics) GetPrevEpochStartHash() []byte
- func (m *Economics) GetPrevEpochStartRound() uint64
- func (m *Economics) GetRewardsForProtocolSustainability() *math_big.Int
- func (m *Economics) GetRewardsPerBlock() *math_big.Int
- func (m *Economics) GetTotalNewlyMinted() *math_big.Int
- func (m *Economics) GetTotalSupply() *math_big.Int
- func (m *Economics) GetTotalToDistribute() *math_big.Int
- func (this *Economics) GoString() string
- func (m *Economics) Marshal() (dAtA []byte, err error)
- func (m *Economics) MarshalTo(dAtA []byte) (int, error)
- func (m *Economics) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Economics) ProtoMessage()
- func (m *Economics) Reset()
- func (e *Economics) SetNodePrice(nodePrice *big.Int) error
- func (e *Economics) SetPrevEpochStartHash(prevEpochStartHash []byte) error
- func (e *Economics) SetPrevEpochStartRound(prevEpochStartRound uint64) error
- func (e *Economics) SetRewardsForProtocolSustainability(rewardsForProtocolSustainability *big.Int) error
- func (e *Economics) SetRewardsPerBlock(rewardsPerBlock *big.Int) error
- func (e *Economics) SetTotalNewlyMinted(totalNewlyMinted *big.Int) error
- func (e *Economics) SetTotalSupply(totalSupply *big.Int) error
- func (e *Economics) SetTotalToDistribute(totalToDistribute *big.Int) error
- func (m *Economics) Size() (n int)
- func (this *Economics) String() string
- func (m *Economics) Unmarshal(dAtA []byte) error
- func (m *Economics) XXX_DiscardUnknown()
- func (m *Economics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Economics) XXX_Merge(src proto.Message)
- func (m *Economics) XXX_Size() int
- func (m *Economics) XXX_Unmarshal(b []byte) error
- type EpochStart
- func (*EpochStart) Descriptor() ([]byte, []int)
- func (this *EpochStart) Equal(that interface{}) bool
- func (m *EpochStart) GetEconomics() Economics
- func (es *EpochStart) GetEconomicsHandler() data.EconomicsHandler
- func (es *EpochStart) GetLastFinalizedHeaderHandlers() []data.EpochStartShardDataHandler
- func (m *EpochStart) GetLastFinalizedHeaders() []EpochStartShardData
- func (this *EpochStart) GoString() string
- func (m *EpochStart) Marshal() (dAtA []byte, err error)
- func (m *EpochStart) MarshalTo(dAtA []byte) (int, error)
- func (m *EpochStart) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EpochStart) ProtoMessage()
- func (m *EpochStart) Reset()
- func (es *EpochStart) SetEconomics(economicsHandler data.EconomicsHandler) error
- func (es *EpochStart) SetLastFinalizedHeaders(epochStartDataHandlers []data.EpochStartShardDataHandler) error
- func (m *EpochStart) Size() (n int)
- func (this *EpochStart) String() string
- func (m *EpochStart) Unmarshal(dAtA []byte) error
- func (m *EpochStart) XXX_DiscardUnknown()
- func (m *EpochStart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EpochStart) XXX_Merge(src proto.Message)
- func (m *EpochStart) XXX_Size() int
- func (m *EpochStart) XXX_Unmarshal(b []byte) error
- type EpochStartShardData
- func (*EpochStartShardData) Descriptor() ([]byte, []int)
- func (this *EpochStartShardData) Equal(that interface{}) bool
- func (m *EpochStartShardData) GetEpoch() uint32
- func (m *EpochStartShardData) GetFirstPendingMetaBlock() []byte
- func (m *EpochStartShardData) GetHeaderHash() []byte
- func (m *EpochStartShardData) GetLastFinishedMetaBlock() []byte
- func (m *EpochStartShardData) GetNonce() uint64
- func (essd *EpochStartShardData) GetPendingMiniBlockHeaderHandlers() []data.MiniBlockHeaderHandler
- func (m *EpochStartShardData) GetPendingMiniBlockHeaders() []MiniBlockHeader
- func (m *EpochStartShardData) GetRootHash() []byte
- func (m *EpochStartShardData) GetRound() uint64
- func (m *EpochStartShardData) GetScheduledRootHash() []byte
- func (m *EpochStartShardData) GetShardID() uint32
- func (this *EpochStartShardData) GoString() string
- func (m *EpochStartShardData) Marshal() (dAtA []byte, err error)
- func (m *EpochStartShardData) MarshalTo(dAtA []byte) (int, error)
- func (m *EpochStartShardData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EpochStartShardData) ProtoMessage()
- func (m *EpochStartShardData) Reset()
- func (essd *EpochStartShardData) SetEpoch(epoch uint32) error
- func (essd *EpochStartShardData) SetFirstPendingMetaBlock(metaBlock []byte) error
- func (essd *EpochStartShardData) SetHeaderHash(hash []byte) error
- func (essd *EpochStartShardData) SetLastFinishedMetaBlock(lastFinishedMetaBlock []byte) error
- func (essd *EpochStartShardData) SetNonce(nonce uint64) error
- func (essd *EpochStartShardData) SetPendingMiniBlockHeaders(miniBlockHeaderHandlers []data.MiniBlockHeaderHandler) error
- func (essd *EpochStartShardData) SetRootHash(rootHash []byte) error
- func (essd *EpochStartShardData) SetRound(round uint64) error
- func (essd *EpochStartShardData) SetScheduledRootHash(schRootHash []byte) error
- func (essd *EpochStartShardData) SetShardID(shardID uint32) error
- func (m *EpochStartShardData) Size() (n int)
- func (this *EpochStartShardData) String() string
- func (m *EpochStartShardData) Unmarshal(dAtA []byte) error
- func (m *EpochStartShardData) XXX_DiscardUnknown()
- func (m *EpochStartShardData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EpochStartShardData) XXX_Merge(src proto.Message)
- func (m *EpochStartShardData) XXX_Size() int
- func (m *EpochStartShardData) XXX_Unmarshal(b []byte) error
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (this *Header) Equal(that interface{}) bool
- func (m *Header) GetAccumulatedFees() *math_big.Int
- func (h *Header) GetAdditionalData() headerVersionData.HeaderAdditionalData
- func (m *Header) GetBlockBodyType() Type
- func (h *Header) GetBlockBodyTypeInt32() int32
- func (m *Header) GetChainID() []byte
- func (m *Header) GetDeveloperFees() *math_big.Int
- func (m *Header) GetEpoch() uint32
- func (m *Header) GetEpochStartMetaHash() []byte
- func (m *Header) GetLeaderSignature() []byte
- func (m *Header) GetMetaBlockHashes() [][]byte
- func (h *Header) GetMiniBlockHeaderHandlers() []data.MiniBlockHeaderHandler
- func (m *Header) GetMiniBlockHeaders() []MiniBlockHeader
- func (h *Header) GetMiniBlockHeadersHashes() [][]byte
- func (h *Header) GetMiniBlockHeadersWithDst(destId uint32) map[string]uint32
- func (m *Header) GetNonce() uint64
- func (h *Header) GetOrderedCrossMiniblocksWithDst(destId uint32) []*data.MiniBlockInfo
- func (m *Header) GetPeerChanges() []PeerChange
- func (m *Header) GetPrevHash() []byte
- func (m *Header) GetPrevRandSeed() []byte
- func (m *Header) GetPubKeysBitmap() []byte
- func (m *Header) GetRandSeed() []byte
- func (m *Header) GetReceiptsHash() []byte
- func (m *Header) GetReserved() []byte
- func (m *Header) GetRootHash() []byte
- func (m *Header) GetRound() uint64
- func (m *Header) GetShardID() uint32
- func (m *Header) GetSignature() []byte
- func (m *Header) GetSoftwareVersion() []byte
- func (m *Header) GetTimeStamp() uint64
- func (m *Header) GetTxCount() uint32
- func (h *Header) GetValidatorStatsRootHash() []byte
- func (this *Header) GoString() string
- func (h *Header) HasScheduledMiniBlocks() bool
- func (h *Header) HasScheduledSupport() bool
- func (h *Header) IsInterfaceNil() bool
- func (h *Header) IsStartOfEpochBlock() bool
- func (h *Header) MapMiniBlockHashesToShards() map[string]uint32
- func (m *Header) Marshal() (dAtA []byte, err error)
- func (m *Header) MarshalTo(dAtA []byte) (int, error)
- func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (h *Header) SetAccumulatedFees(value *big.Int) error
- func (h *Header) SetAdditionalData(_ headerVersionData.HeaderAdditionalData) error
- func (h *Header) SetChainID(chainID []byte) error
- func (h *Header) SetDeveloperFees(value *big.Int) error
- func (h *Header) SetEpoch(e uint32) error
- func (h *Header) SetEpochStartMetaHash(hash []byte) error
- func (h *Header) SetLeaderSignature(sg []byte) error
- func (h *Header) SetMetaBlockHashes(hashes [][]byte) error
- func (h *Header) SetMiniBlockHeaderHandlers(mbHeaderHandlers []data.MiniBlockHeaderHandler) error
- func (h *Header) SetNonce(n uint64) error
- func (h *Header) SetPrevHash(pvHash []byte) error
- func (h *Header) SetPrevRandSeed(pvRandSeed []byte) error
- func (h *Header) SetPubKeysBitmap(pkbm []byte) error
- func (h *Header) SetRandSeed(randSeed []byte) error
- func (h *Header) SetReceiptsHash(hash []byte) error
- func (h *Header) SetRootHash(rHash []byte) error
- func (h *Header) SetRound(r uint64) error
- func (h *Header) SetScheduledRootHash(_ []byte) error
- func (h *Header) SetShardID(shId uint32) error
- func (h *Header) SetSignature(sg []byte) error
- func (h *Header) SetSoftwareVersion(version []byte) error
- func (h *Header) SetTimeStamp(ts uint64) error
- func (h *Header) SetTxCount(txCount uint32) error
- func (h *Header) SetValidatorStatsRootHash(_ []byte)
- func (h *Header) ShallowClone() data.HeaderHandler
- func (m *Header) Size() (n int)
- func (this *Header) String() string
- func (m *Header) Unmarshal(dAtA []byte) error
- func (h *Header) ValidateHeaderVersion() error
- func (m *Header) XXX_DiscardUnknown()
- func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Header) XXX_Merge(src proto.Message)
- func (m *Header) XXX_Size() int
- func (m *Header) XXX_Unmarshal(b []byte) error
- type HeaderV2
- func (*HeaderV2) Descriptor() ([]byte, []int)
- func (this *HeaderV2) Equal(that interface{}) bool
- func (hv2 *HeaderV2) GetAccumulatedFees() *big.Int
- func (hv2 *HeaderV2) GetAdditionalData() headerVersionData.HeaderAdditionalData
- func (hv2 *HeaderV2) GetBlockBodyTypeInt32() int32
- func (hv2 *HeaderV2) GetChainID() []byte
- func (hv2 *HeaderV2) GetDeveloperFees() *big.Int
- func (hv2 *HeaderV2) GetEpoch() uint32
- func (hv2 *HeaderV2) GetEpochStartMetaHash() []byte
- func (m *HeaderV2) GetHeader() *Header
- func (hv2 *HeaderV2) GetLeaderSignature() []byte
- func (hv2 *HeaderV2) GetMetaBlockHashes() [][]byte
- func (hv2 *HeaderV2) GetMiniBlockHeaderHandlers() []data.MiniBlockHeaderHandler
- func (hv2 *HeaderV2) GetMiniBlockHeadersHashes() [][]byte
- func (hv2 *HeaderV2) GetMiniBlockHeadersWithDst(destId uint32) map[string]uint32
- func (hv2 *HeaderV2) GetNonce() uint64
- func (hv2 *HeaderV2) GetOrderedCrossMiniblocksWithDst(destId uint32) []*data.MiniBlockInfo
- func (hv2 *HeaderV2) GetPrevHash() []byte
- func (hv2 *HeaderV2) GetPrevRandSeed() []byte
- func (hv2 *HeaderV2) GetPubKeysBitmap() []byte
- func (hv2 *HeaderV2) GetRandSeed() []byte
- func (hv2 *HeaderV2) GetReceiptsHash() []byte
- func (hv2 *HeaderV2) GetReserved() []byte
- func (hv2 *HeaderV2) GetRootHash() []byte
- func (hv2 *HeaderV2) GetRound() uint64
- func (m *HeaderV2) GetScheduledAccumulatedFees() *math_big.Int
- func (m *HeaderV2) GetScheduledDeveloperFees() *math_big.Int
- func (m *HeaderV2) GetScheduledGasPenalized() uint64
- func (m *HeaderV2) GetScheduledGasProvided() uint64
- func (m *HeaderV2) GetScheduledGasRefunded() uint64
- func (m *HeaderV2) GetScheduledRootHash() []byte
- func (hv2 *HeaderV2) GetShardID() uint32
- func (hv2 *HeaderV2) GetSignature() []byte
- func (hv2 *HeaderV2) GetSoftwareVersion() []byte
- func (hv2 *HeaderV2) GetTimeStamp() uint64
- func (hv2 *HeaderV2) GetTxCount() uint32
- func (this *HeaderV2) GoString() string
- func (hv2 *HeaderV2) HasScheduledMiniBlocks() bool
- func (hv2 *HeaderV2) HasScheduledSupport() bool
- func (hv2 *HeaderV2) IsInterfaceNil() bool
- func (hv2 *HeaderV2) IsStartOfEpochBlock() bool
- func (hv2 *HeaderV2) MapMiniBlockHashesToShards() map[string]uint32
- func (m *HeaderV2) Marshal() (dAtA []byte, err error)
- func (m *HeaderV2) MarshalTo(dAtA []byte) (int, error)
- func (m *HeaderV2) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HeaderV2) ProtoMessage()
- func (m *HeaderV2) Reset()
- func (hv2 *HeaderV2) SetAccumulatedFees(value *big.Int) error
- func (hv2 *HeaderV2) SetAdditionalData(headerVersionData headerVersionData.HeaderAdditionalData) error
- func (hv2 *HeaderV2) SetChainID(chainID []byte) error
- func (hv2 *HeaderV2) SetDeveloperFees(value *big.Int) error
- func (hv2 *HeaderV2) SetEpoch(e uint32) error
- func (hv2 *HeaderV2) SetEpochStartMetaHash(hash []byte) error
- func (hv2 *HeaderV2) SetLeaderSignature(sg []byte) error
- func (hv2 *HeaderV2) SetMetaBlockHashes(hashes [][]byte) error
- func (hv2 *HeaderV2) SetMiniBlockHeaderHandlers(mbHeaderHandlers []data.MiniBlockHeaderHandler) error
- func (hv2 *HeaderV2) SetNonce(n uint64) error
- func (hv2 *HeaderV2) SetPrevHash(pvHash []byte) error
- func (hv2 *HeaderV2) SetPrevRandSeed(pvRandSeed []byte) error
- func (hv2 *HeaderV2) SetPubKeysBitmap(pkbm []byte) error
- func (hv2 *HeaderV2) SetRandSeed(randSeed []byte) error
- func (hv2 *HeaderV2) SetReceiptsHash(hash []byte) error
- func (hv2 *HeaderV2) SetRootHash(rHash []byte) error
- func (hv2 *HeaderV2) SetRound(r uint64) error
- func (hv2 *HeaderV2) SetScheduledAccumulatedFees(value *big.Int) error
- func (hv2 *HeaderV2) SetScheduledDeveloperFees(value *big.Int) error
- func (hv2 *HeaderV2) SetScheduledGasPenalized(gasPenalized uint64) error
- func (hv2 *HeaderV2) SetScheduledGasProvided(gasProvided uint64) error
- func (hv2 *HeaderV2) SetScheduledGasRefunded(gasRefunded uint64) error
- func (hv2 *HeaderV2) SetScheduledRootHash(rootHash []byte) error
- func (hv2 *HeaderV2) SetShardID(shId uint32) error
- func (hv2 *HeaderV2) SetSignature(sg []byte) error
- func (hv2 *HeaderV2) SetSoftwareVersion(version []byte) error
- func (hv2 *HeaderV2) SetTimeStamp(ts uint64) error
- func (hv2 *HeaderV2) SetTxCount(txCount uint32) error
- func (hv2 *HeaderV2) ShallowClone() data.HeaderHandler
- func (m *HeaderV2) Size() (n int)
- func (this *HeaderV2) String() string
- func (m *HeaderV2) Unmarshal(dAtA []byte) error
- func (hv2 *HeaderV2) ValidateHeaderVersion() error
- func (m *HeaderV2) XXX_DiscardUnknown()
- func (m *HeaderV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HeaderV2) XXX_Merge(src proto.Message)
- func (m *HeaderV2) XXX_Size() int
- func (m *HeaderV2) XXX_Unmarshal(b []byte) error
- type MetaBlock
- func (*MetaBlock) Descriptor() ([]byte, []int)
- func (this *MetaBlock) Equal(that interface{}) bool
- func (m *MetaBlock) GetAccumulatedFees() *math_big.Int
- func (m *MetaBlock) GetAccumulatedFeesInEpoch() *math_big.Int
- func (m *MetaBlock) GetAdditionalData() headerVersionData.HeaderAdditionalData
- func (m *MetaBlock) GetChainID() []byte
- func (m *MetaBlock) GetDevFeesInEpoch() *math_big.Int
- func (m *MetaBlock) GetDeveloperFees() *math_big.Int
- func (m *MetaBlock) GetEpoch() uint32
- func (m *MetaBlock) GetEpochStart() EpochStart
- func (m *MetaBlock) GetEpochStartHandler() data.EpochStartHandler
- func (m *MetaBlock) GetLeaderSignature() []byte
- func (m *MetaBlock) GetMiniBlockHeaderHandlers() []data.MiniBlockHeaderHandler
- func (m *MetaBlock) GetMiniBlockHeaders() []MiniBlockHeader
- func (m *MetaBlock) GetMiniBlockHeadersHashes() [][]byte
- func (m *MetaBlock) GetMiniBlockHeadersWithDst(destId uint32) map[string]uint32
- func (m *MetaBlock) GetNonce() uint64
- func (m *MetaBlock) GetOrderedCrossMiniblocksWithDst(destId uint32) []*data.MiniBlockInfo
- func (m *MetaBlock) GetPeerInfo() []PeerData
- 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) GetReserved() []byte
- func (m *MetaBlock) GetRootHash() []byte
- func (m *MetaBlock) GetRound() uint64
- func (m *MetaBlock) GetShardID() uint32
- func (m *MetaBlock) GetShardInfo() []ShardData
- func (m *MetaBlock) GetShardInfoHandlers() []data.ShardDataHandler
- func (m *MetaBlock) GetSignature() []byte
- func (m *MetaBlock) GetSoftwareVersion() []byte
- func (m *MetaBlock) GetTimeStamp() uint64
- func (m *MetaBlock) GetTxCount() uint32
- func (m *MetaBlock) GetValidatorStatsRootHash() []byte
- func (this *MetaBlock) GoString() string
- func (m *MetaBlock) HasScheduledMiniBlocks() bool
- func (m *MetaBlock) HasScheduledSupport() bool
- func (m *MetaBlock) IsInterfaceNil() bool
- func (m *MetaBlock) IsStartOfEpochBlock() bool
- func (m *MetaBlock) Marshal() (dAtA []byte, err error)
- func (m *MetaBlock) MarshalTo(dAtA []byte) (int, error)
- func (m *MetaBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MetaBlock) ProtoMessage()
- func (m *MetaBlock) Reset()
- func (m *MetaBlock) SetAccumulatedFees(value *big.Int) error
- func (m *MetaBlock) SetAccumulatedFeesInEpoch(value *big.Int) error
- func (m *MetaBlock) SetAdditionalData(_ headerVersionData.HeaderAdditionalData) error
- func (m *MetaBlock) SetChainID(chainID []byte) error
- func (m *MetaBlock) SetDevFeesInEpoch(value *big.Int) error
- func (m *MetaBlock) SetDeveloperFees(value *big.Int) error
- func (m *MetaBlock) SetEpoch(e uint32) error
- func (m *MetaBlock) SetLeaderSignature(sg []byte) error
- func (m *MetaBlock) SetMiniBlockHeaderHandlers(mbHeaderHandlers []data.MiniBlockHeaderHandler) error
- func (m *MetaBlock) SetNonce(n uint64) error
- func (m *MetaBlock) SetPrevHash(pvHash []byte) error
- func (m *MetaBlock) SetPrevRandSeed(pvRandSeed []byte) error
- func (m *MetaBlock) SetPubKeysBitmap(pkbm []byte) error
- func (m *MetaBlock) SetRandSeed(randSeed []byte) error
- func (m *MetaBlock) SetReceiptsHash(hash []byte) error
- func (m *MetaBlock) SetRootHash(rHash []byte) error
- func (m *MetaBlock) SetRound(r uint64) error
- func (m *MetaBlock) SetScheduledRootHash(_ []byte) error
- func (m *MetaBlock) SetShardID(_ uint32) error
- func (m *MetaBlock) SetShardInfoHandlers(shardInfo []data.ShardDataHandler) error
- func (m *MetaBlock) SetSignature(sg []byte) error
- func (m *MetaBlock) SetSoftwareVersion(version []byte) error
- func (m *MetaBlock) SetTimeStamp(ts uint64) error
- func (m *MetaBlock) SetTxCount(txCount uint32) error
- func (m *MetaBlock) SetValidatorStatsRootHash(rHash []byte) error
- func (m *MetaBlock) ShallowClone() data.HeaderHandler
- func (m *MetaBlock) Size() (n int)
- func (this *MetaBlock) String() string
- func (m *MetaBlock) Unmarshal(dAtA []byte) error
- func (m *MetaBlock) ValidateHeaderVersion() error
- func (m *MetaBlock) XXX_DiscardUnknown()
- func (m *MetaBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MetaBlock) XXX_Merge(src proto.Message)
- func (m *MetaBlock) XXX_Size() int
- func (m *MetaBlock) XXX_Unmarshal(b []byte) error
- type MetaTriggerRegistry
- func (*MetaTriggerRegistry) Descriptor() ([]byte, []int)
- func (this *MetaTriggerRegistry) Equal(that interface{}) bool
- func (m *MetaTriggerRegistry) GetCurrEpochStartRound() uint64
- func (m *MetaTriggerRegistry) GetCurrentRound() uint64
- func (m *MetaTriggerRegistry) GetEpoch() uint32
- func (m *MetaTriggerRegistry) GetEpochFinalityAttestingRound() uint64
- func (m *MetaTriggerRegistry) GetEpochStartMeta() *MetaBlock
- func (m *MetaTriggerRegistry) GetEpochStartMetaHash() []byte
- func (m *MetaTriggerRegistry) GetPrevEpochStartRound() uint64
- func (this *MetaTriggerRegistry) GoString() string
- func (m *MetaTriggerRegistry) Marshal() (dAtA []byte, err error)
- func (m *MetaTriggerRegistry) MarshalTo(dAtA []byte) (int, error)
- func (m *MetaTriggerRegistry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MetaTriggerRegistry) ProtoMessage()
- func (m *MetaTriggerRegistry) Reset()
- func (m *MetaTriggerRegistry) Size() (n int)
- func (this *MetaTriggerRegistry) String() string
- func (m *MetaTriggerRegistry) Unmarshal(dAtA []byte) error
- func (m *MetaTriggerRegistry) XXX_DiscardUnknown()
- func (m *MetaTriggerRegistry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MetaTriggerRegistry) XXX_Merge(src proto.Message)
- func (m *MetaTriggerRegistry) XXX_Size() int
- func (m *MetaTriggerRegistry) XXX_Unmarshal(b []byte) error
- type MiniBlock
- func (mb *MiniBlock) Clone() *MiniBlock
- func (*MiniBlock) Descriptor() ([]byte, []int)
- func (this *MiniBlock) Equal(that interface{}) bool
- func (mb *MiniBlock) GetMiniBlockReserved() (*MiniBlockReserved, error)
- func (mb *MiniBlock) GetProcessingType() int32
- func (m *MiniBlock) GetReceiverShardID() uint32
- func (m *MiniBlock) GetReserved() []byte
- func (m *MiniBlock) GetSenderShardID() uint32
- func (m *MiniBlock) GetTxHashes() [][]byte
- func (mb *MiniBlock) GetTxsTypeFromMiniBlock() ([]Type, error)
- func (m *MiniBlock) GetType() Type
- func (this *MiniBlock) GoString() string
- func (mb *MiniBlock) IsScheduledMiniBlock() bool
- func (m *MiniBlock) Marshal() (dAtA []byte, err error)
- func (m *MiniBlock) MarshalTo(dAtA []byte) (int, error)
- func (m *MiniBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MiniBlock) ProtoMessage()
- func (m *MiniBlock) Reset()
- func (mb *MiniBlock) SetMiniBlockReserved(mbr *MiniBlockReserved) error
- func (m *MiniBlock) Size() (n int)
- func (this *MiniBlock) String() string
- func (m *MiniBlock) Unmarshal(dAtA []byte) error
- func (m *MiniBlock) XXX_DiscardUnknown()
- func (m *MiniBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MiniBlock) XXX_Merge(src proto.Message)
- func (m *MiniBlock) XXX_Size() int
- func (m *MiniBlock) XXX_Unmarshal(b []byte) error
- type MiniBlockHeader
- func (*MiniBlockHeader) Descriptor() ([]byte, []int)
- func (this *MiniBlockHeader) Equal(that interface{}) bool
- func (m *MiniBlockHeader) GetConstructionState() int32
- func (m *MiniBlockHeader) GetHash() []byte
- func (m *MiniBlockHeader) GetIndexOfFirstTxProcessed() int32
- func (m *MiniBlockHeader) GetIndexOfLastTxProcessed() int32
- func (m *MiniBlockHeader) GetProcessingType() int32
- func (m *MiniBlockHeader) GetReceiverShardID() uint32
- func (m *MiniBlockHeader) GetReserved() []byte
- func (m *MiniBlockHeader) GetSenderShardID() uint32
- func (m *MiniBlockHeader) GetTxCount() uint32
- func (m *MiniBlockHeader) GetType() Type
- func (m *MiniBlockHeader) GetTypeInt32() int32
- func (this *MiniBlockHeader) GoString() string
- func (m *MiniBlockHeader) IsFinal() bool
- func (m *MiniBlockHeader) Marshal() (dAtA []byte, err error)
- func (m *MiniBlockHeader) MarshalTo(dAtA []byte) (int, error)
- func (m *MiniBlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MiniBlockHeader) ProtoMessage()
- func (m *MiniBlockHeader) Reset()
- func (m *MiniBlockHeader) SetConstructionState(state int32) error
- func (m *MiniBlockHeader) SetHash(hash []byte) error
- func (m *MiniBlockHeader) SetIndexOfFirstTxProcessed(indexOfFirstTxProcessed int32) error
- func (m *MiniBlockHeader) SetIndexOfLastTxProcessed(indexOfLastTxProcessed int32) error
- func (m *MiniBlockHeader) SetProcessingType(procType int32) error
- func (m *MiniBlockHeader) SetReceiverShardID(shardID uint32) error
- func (m *MiniBlockHeader) SetReserved(reserved []byte) error
- func (m *MiniBlockHeader) SetSenderShardID(shardID uint32) error
- func (m *MiniBlockHeader) SetTxCount(count uint32) error
- func (m *MiniBlockHeader) SetTypeInt32(t int32) error
- func (m *MiniBlockHeader) ShallowClone() data.MiniBlockHeaderHandler
- func (m *MiniBlockHeader) Size() (n int)
- func (this *MiniBlockHeader) String() string
- func (m *MiniBlockHeader) Unmarshal(dAtA []byte) error
- func (m *MiniBlockHeader) XXX_DiscardUnknown()
- func (m *MiniBlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MiniBlockHeader) XXX_Merge(src proto.Message)
- func (m *MiniBlockHeader) XXX_Size() int
- func (m *MiniBlockHeader) XXX_Unmarshal(b []byte) error
- type MiniBlockHeaderReserved
- func (*MiniBlockHeaderReserved) Descriptor() ([]byte, []int)
- func (this *MiniBlockHeaderReserved) Equal(that interface{}) bool
- func (m *MiniBlockHeaderReserved) GetExecutionType() ProcessingType
- func (m *MiniBlockHeaderReserved) GetIndexOfFirstTxProcessed() int32
- func (m *MiniBlockHeaderReserved) GetIndexOfLastTxProcessed() int32
- func (m *MiniBlockHeaderReserved) GetState() MiniBlockState
- func (this *MiniBlockHeaderReserved) GoString() string
- func (m *MiniBlockHeaderReserved) Marshal() (dAtA []byte, err error)
- func (m *MiniBlockHeaderReserved) MarshalTo(dAtA []byte) (int, error)
- func (m *MiniBlockHeaderReserved) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MiniBlockHeaderReserved) ProtoMessage()
- func (m *MiniBlockHeaderReserved) Reset()
- func (m *MiniBlockHeaderReserved) Size() (n int)
- func (this *MiniBlockHeaderReserved) String() string
- func (m *MiniBlockHeaderReserved) Unmarshal(dAtA []byte) error
- func (m *MiniBlockHeaderReserved) XXX_DiscardUnknown()
- func (m *MiniBlockHeaderReserved) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MiniBlockHeaderReserved) XXX_Merge(src proto.Message)
- func (m *MiniBlockHeaderReserved) XXX_Size() int
- func (m *MiniBlockHeaderReserved) XXX_Unmarshal(b []byte) error
- type MiniBlockReserved
- func (*MiniBlockReserved) Descriptor() ([]byte, []int)
- func (this *MiniBlockReserved) Equal(that interface{}) bool
- func (m *MiniBlockReserved) GetExecutionType() ProcessingType
- func (m *MiniBlockReserved) GetTransactionsType() []byte
- func (this *MiniBlockReserved) GoString() string
- func (m *MiniBlockReserved) Marshal() (dAtA []byte, err error)
- func (m *MiniBlockReserved) MarshalTo(dAtA []byte) (int, error)
- func (m *MiniBlockReserved) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MiniBlockReserved) ProtoMessage()
- func (m *MiniBlockReserved) Reset()
- func (m *MiniBlockReserved) Size() (n int)
- func (this *MiniBlockReserved) String() string
- func (m *MiniBlockReserved) Unmarshal(dAtA []byte) error
- func (m *MiniBlockReserved) XXX_DiscardUnknown()
- func (m *MiniBlockReserved) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MiniBlockReserved) XXX_Merge(src proto.Message)
- func (m *MiniBlockReserved) XXX_Size() int
- func (m *MiniBlockReserved) XXX_Unmarshal(b []byte) error
- type MiniBlockSlice
- type MiniBlockState
- type MiniblockAndHash
- type PeerAction
- type PeerChange
- func (*PeerChange) Descriptor() ([]byte, []int)
- func (this *PeerChange) Equal(that interface{}) bool
- func (m *PeerChange) GetPubKey() []byte
- func (m *PeerChange) GetShardIdDest() uint32
- func (this *PeerChange) GoString() string
- func (m *PeerChange) Marshal() (dAtA []byte, err error)
- func (m *PeerChange) MarshalTo(dAtA []byte) (int, error)
- func (m *PeerChange) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PeerChange) ProtoMessage()
- func (m *PeerChange) Reset()
- func (pc *PeerChange) SetPubKey(pubKey []byte) error
- func (pc *PeerChange) SetShardIdDest(shardID uint32) error
- func (m *PeerChange) Size() (n int)
- func (this *PeerChange) String() string
- func (m *PeerChange) Unmarshal(dAtA []byte) error
- func (m *PeerChange) XXX_DiscardUnknown()
- func (m *PeerChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PeerChange) XXX_Merge(src proto.Message)
- func (m *PeerChange) XXX_Size() int
- func (m *PeerChange) XXX_Unmarshal(b []byte) error
- type PeerData
- func (*PeerData) Descriptor() ([]byte, []int)
- func (this *PeerData) Equal(that interface{}) bool
- func (m *PeerData) GetAction() PeerAction
- func (m *PeerData) GetAddress() []byte
- func (m *PeerData) GetPublicKey() []byte
- func (m *PeerData) GetTimeStamp() uint64
- func (m *PeerData) GetValueChange() *math_big.Int
- func (this *PeerData) GoString() string
- func (m *PeerData) Marshal() (dAtA []byte, err error)
- func (m *PeerData) MarshalTo(dAtA []byte) (int, error)
- func (m *PeerData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PeerData) ProtoMessage()
- func (m *PeerData) Reset()
- func (m *PeerData) Size() (n int)
- func (this *PeerData) String() string
- func (m *PeerData) Unmarshal(dAtA []byte) error
- func (m *PeerData) XXX_DiscardUnknown()
- func (m *PeerData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PeerData) XXX_Merge(src proto.Message)
- func (m *PeerData) XXX_Size() int
- func (m *PeerData) XXX_Unmarshal(b []byte) error
- type ProcessingType
- type ShardData
- func (*ShardData) Descriptor() ([]byte, []int)
- func (this *ShardData) Equal(that interface{}) bool
- func (m *ShardData) GetAccumulatedFees() *math_big.Int
- func (m *ShardData) GetDeveloperFees() *math_big.Int
- func (m *ShardData) GetHeaderHash() []byte
- func (m *ShardData) GetLastIncludedMetaNonce() uint64
- func (m *ShardData) GetNonce() uint64
- func (m *ShardData) GetNumPendingMiniBlocks() uint32
- func (m *ShardData) GetPrevHash() []byte
- func (m *ShardData) GetPrevRandSeed() []byte
- func (m *ShardData) GetPubKeysBitmap() []byte
- func (m *ShardData) GetRound() uint64
- func (m *ShardData) GetShardID() uint32
- func (sd *ShardData) GetShardMiniBlockHeaderHandlers() []data.MiniBlockHeaderHandler
- func (m *ShardData) GetShardMiniBlockHeaders() []MiniBlockHeader
- func (m *ShardData) GetSignature() []byte
- func (m *ShardData) GetTxCount() uint32
- func (this *ShardData) GoString() string
- func (m *ShardData) Marshal() (dAtA []byte, err error)
- func (m *ShardData) MarshalTo(dAtA []byte) (int, error)
- func (m *ShardData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ShardData) ProtoMessage()
- func (m *ShardData) Reset()
- func (sd *ShardData) SetAccumulatedFees(fees *big.Int) error
- func (sd *ShardData) SetDeveloperFees(fees *big.Int) error
- func (sd *ShardData) SetHeaderHash(hash []byte) error
- func (sd *ShardData) SetLastIncludedMetaNonce(nonce uint64) error
- func (sd *ShardData) SetNonce(nonce uint64) error
- func (sd *ShardData) SetNumPendingMiniBlocks(num uint32) error
- func (sd *ShardData) SetPrevHash(prevHash []byte) error
- func (sd *ShardData) SetPrevRandSeed(prevRandSeed []byte) error
- func (sd *ShardData) SetPubKeysBitmap(pubKeysBitmap []byte) error
- func (sd *ShardData) SetRound(round uint64) error
- func (sd *ShardData) SetShardID(shardID uint32) error
- func (sd *ShardData) SetShardMiniBlockHeaderHandlers(mbHeaderHandlers []data.MiniBlockHeaderHandler) error
- func (sd *ShardData) SetSignature(signature []byte) error
- func (sd *ShardData) SetTxCount(txCount uint32) error
- func (sd *ShardData) ShallowClone() data.ShardDataHandler
- func (m *ShardData) Size() (n int)
- func (this *ShardData) String() string
- func (m *ShardData) Unmarshal(dAtA []byte) error
- func (m *ShardData) XXX_DiscardUnknown()
- func (m *ShardData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ShardData) XXX_Merge(src proto.Message)
- func (m *ShardData) XXX_Size() int
- func (m *ShardData) XXX_Unmarshal(b []byte) error
- type ShardTriggerRegistry
- func (*ShardTriggerRegistry) Descriptor() ([]byte, []int)
- func (this *ShardTriggerRegistry) Equal(that interface{}) bool
- func (m *ShardTriggerRegistry) GetCurrentRoundIndex() int64
- func (m *ShardTriggerRegistry) GetEpoch() uint32
- func (m *ShardTriggerRegistry) GetEpochFinalityAttestingRound() uint64
- func (m *ShardTriggerRegistry) GetEpochMetaBlockHash() []byte
- func (str *ShardTriggerRegistry) GetEpochStartHeaderHandler() data.HeaderHandler
- func (m *ShardTriggerRegistry) GetEpochStartRound() uint64
- func (m *ShardTriggerRegistry) GetEpochStartShardHeader() *Header
- func (m *ShardTriggerRegistry) GetIsEpochStart() bool
- func (m *ShardTriggerRegistry) GetMetaEpoch() uint32
- func (m *ShardTriggerRegistry) GetNewEpochHeaderReceived() bool
- func (this *ShardTriggerRegistry) GoString() string
- func (m *ShardTriggerRegistry) Marshal() (dAtA []byte, err error)
- func (m *ShardTriggerRegistry) MarshalTo(dAtA []byte) (int, error)
- func (m *ShardTriggerRegistry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ShardTriggerRegistry) ProtoMessage()
- func (m *ShardTriggerRegistry) Reset()
- func (str *ShardTriggerRegistry) SetCurrentRoundIndex(roundIndex int64) error
- func (str *ShardTriggerRegistry) SetEpoch(epoch uint32) error
- func (str *ShardTriggerRegistry) SetEpochFinalityAttestingRound(finalityAttestingRound uint64) error
- func (str *ShardTriggerRegistry) SetEpochMetaBlockHash(epochMetaBlockHash []byte) error
- func (str *ShardTriggerRegistry) SetEpochStartHeaderHandler(epochStartHeaderHandler data.HeaderHandler) error
- func (str *ShardTriggerRegistry) SetEpochStartRound(startRound uint64) error
- func (str *ShardTriggerRegistry) SetIsEpochStart(isEpochStart bool) error
- func (str *ShardTriggerRegistry) SetMetaEpoch(metaEpoch uint32) error
- func (str *ShardTriggerRegistry) SetNewEpochHeaderReceived(newEpochHeaderReceived bool) error
- func (m *ShardTriggerRegistry) Size() (n int)
- func (this *ShardTriggerRegistry) String() string
- func (m *ShardTriggerRegistry) Unmarshal(dAtA []byte) error
- func (m *ShardTriggerRegistry) XXX_DiscardUnknown()
- func (m *ShardTriggerRegistry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ShardTriggerRegistry) XXX_Merge(src proto.Message)
- func (m *ShardTriggerRegistry) XXX_Size() int
- func (m *ShardTriggerRegistry) XXX_Unmarshal(b []byte) error
- type ShardTriggerRegistryV2
- func (*ShardTriggerRegistryV2) Descriptor() ([]byte, []int)
- func (this *ShardTriggerRegistryV2) Equal(that interface{}) bool
- func (m *ShardTriggerRegistryV2) GetCurrentRoundIndex() int64
- func (m *ShardTriggerRegistryV2) GetEpoch() uint32
- func (m *ShardTriggerRegistryV2) GetEpochFinalityAttestingRound() uint64
- func (m *ShardTriggerRegistryV2) GetEpochMetaBlockHash() []byte
- func (strV2 *ShardTriggerRegistryV2) GetEpochStartHeaderHandler() data.HeaderHandler
- func (m *ShardTriggerRegistryV2) GetEpochStartRound() uint64
- func (m *ShardTriggerRegistryV2) GetEpochStartShardHeader() *HeaderV2
- func (m *ShardTriggerRegistryV2) GetIsEpochStart() bool
- func (m *ShardTriggerRegistryV2) GetMetaEpoch() uint32
- func (m *ShardTriggerRegistryV2) GetNewEpochHeaderReceived() bool
- func (this *ShardTriggerRegistryV2) GoString() string
- func (m *ShardTriggerRegistryV2) Marshal() (dAtA []byte, err error)
- func (m *ShardTriggerRegistryV2) MarshalTo(dAtA []byte) (int, error)
- func (m *ShardTriggerRegistryV2) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ShardTriggerRegistryV2) ProtoMessage()
- func (m *ShardTriggerRegistryV2) Reset()
- func (strV2 *ShardTriggerRegistryV2) SetCurrentRoundIndex(roundIndex int64) error
- func (strV2 *ShardTriggerRegistryV2) SetEpoch(epoch uint32) error
- func (strV2 *ShardTriggerRegistryV2) SetEpochFinalityAttestingRound(finalityAttestingRound uint64) error
- func (strV2 *ShardTriggerRegistryV2) SetEpochMetaBlockHash(epochMetaBlockHash []byte) error
- func (strV2 *ShardTriggerRegistryV2) SetEpochStartHeaderHandler(epochStartHeaderHandler data.HeaderHandler) error
- func (strV2 *ShardTriggerRegistryV2) SetEpochStartRound(startRound uint64) error
- func (strV2 *ShardTriggerRegistryV2) SetIsEpochStart(isEpochStart bool) error
- func (strV2 *ShardTriggerRegistryV2) SetMetaEpoch(metaEpoch uint32) error
- func (strV2 *ShardTriggerRegistryV2) SetNewEpochHeaderReceived(newEpochHeaderReceived bool) error
- func (m *ShardTriggerRegistryV2) Size() (n int)
- func (this *ShardTriggerRegistryV2) String() string
- func (m *ShardTriggerRegistryV2) Unmarshal(dAtA []byte) error
- func (m *ShardTriggerRegistryV2) XXX_DiscardUnknown()
- func (m *ShardTriggerRegistryV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ShardTriggerRegistryV2) XXX_Merge(src proto.Message)
- func (m *ShardTriggerRegistryV2) XXX_Size() int
- func (m *ShardTriggerRegistryV2) XXX_Unmarshal(b []byte) error
- type Type
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthBlock = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBlock = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBlock = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthBlockV2 = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBlockV2 = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBlockV2 = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthMetaBlock = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMetaBlock = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMetaBlock = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTrigger = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTrigger = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTrigger = fmt.Errorf("proto: unexpected end of group") )
var MiniBlockState_name = map[int32]string{
0: "Final",
1: "Proposed",
2: "PartialExecuted",
}
var MiniBlockState_value = map[string]int32{
"Final": 0,
"Proposed": 1,
"PartialExecuted": 2,
}
var PeerAction_name = map[int32]string{
0: "InvalidAction",
1: "PeerRegistration",
2: "PeerUnstaking",
3: "PeerDeregistration",
4: "PeerJailed",
5: "PeerUnJailed",
6: "PeerSlashed",
7: "PeerReStake",
}
var PeerAction_value = map[string]int32{
"InvalidAction": 0,
"PeerRegistration": 1,
"PeerUnstaking": 2,
"PeerDeregistration": 3,
"PeerJailed": 4,
"PeerUnJailed": 5,
"PeerSlashed": 6,
"PeerReStake": 7,
}
var ProcessingType_name = map[int32]string{
0: "Normal",
1: "Scheduled",
2: "Processed",
}
var ProcessingType_value = map[string]int32{
"Normal": 0,
"Scheduled": 1,
"Processed": 2,
}
var Type_name = map[int32]string{
0: "TxBlock",
30: "StateBlock",
60: "PeerBlock",
90: "SmartContractResultBlock",
120: "InvalidBlock",
150: "ReceiptBlock",
255: "RewardsBlock",
}
var Type_value = map[string]int32{
"TxBlock": 0,
"StateBlock": 30,
"PeerBlock": 60,
"SmartContractResultBlock": 90,
"InvalidBlock": 120,
"ReceiptBlock": 150,
"RewardsBlock": 255,
}
Functions ¶
This section is empty.
Types ¶
type Body ¶
type Body struct {
MiniBlocks []*MiniBlock `protobuf:"bytes,1,rep,name=MiniBlocks,proto3" json:"MiniBlocks,omitempty"`
}
func (*Body) Descriptor ¶
func (*Body) GetMiniBlocks ¶
func (*Body) IntegrityAndValidity ¶
IntegrityAndValidity checks if data is valid
func (*Body) IsInterfaceNil ¶
IsInterfaceNil returns true if there is no value under the interface
func (*Body) ProtoMessage ¶
func (*Body) ProtoMessage()
func (*Body) XXX_DiscardUnknown ¶
func (m *Body) XXX_DiscardUnknown()
func (*Body) XXX_Unmarshal ¶
type BodyHeaderPair ¶
type BodyHeaderPair struct { Body []byte `protobuf:"bytes,1,opt,name=Body,proto3" json:"Body,omitempty"` Header []byte `protobuf:"bytes,2,opt,name=Header,proto3" json:"Header,omitempty"` }
BodyHeaderPair holds a body and header hash pair
func (*BodyHeaderPair) Descriptor ¶
func (*BodyHeaderPair) Descriptor() ([]byte, []int)
func (*BodyHeaderPair) Equal ¶
func (this *BodyHeaderPair) Equal(that interface{}) bool
func (*BodyHeaderPair) GetBody ¶
func (m *BodyHeaderPair) GetBody() []byte
func (*BodyHeaderPair) GetHeader ¶
func (m *BodyHeaderPair) GetHeader() []byte
func (*BodyHeaderPair) GoString ¶
func (this *BodyHeaderPair) GoString() string
func (*BodyHeaderPair) Marshal ¶
func (m *BodyHeaderPair) Marshal() (dAtA []byte, err error)
func (*BodyHeaderPair) MarshalToSizedBuffer ¶
func (m *BodyHeaderPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BodyHeaderPair) ProtoMessage ¶
func (*BodyHeaderPair) ProtoMessage()
func (*BodyHeaderPair) Reset ¶
func (m *BodyHeaderPair) Reset()
func (*BodyHeaderPair) Size ¶
func (m *BodyHeaderPair) Size() (n int)
func (*BodyHeaderPair) String ¶
func (this *BodyHeaderPair) String() string
func (*BodyHeaderPair) Unmarshal ¶
func (m *BodyHeaderPair) Unmarshal(dAtA []byte) error
func (*BodyHeaderPair) XXX_DiscardUnknown ¶
func (m *BodyHeaderPair) XXX_DiscardUnknown()
func (*BodyHeaderPair) XXX_Marshal ¶
func (m *BodyHeaderPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BodyHeaderPair) XXX_Merge ¶
func (m *BodyHeaderPair) XXX_Merge(src proto.Message)
func (*BodyHeaderPair) XXX_Size ¶
func (m *BodyHeaderPair) XXX_Size() int
func (*BodyHeaderPair) XXX_Unmarshal ¶
func (m *BodyHeaderPair) XXX_Unmarshal(b []byte) error
type Economics ¶
type Economics struct { TotalSupply *math_big.Int `` /* 164-byte string literal not displayed */ TotalToDistribute *math_big.Int `` /* 176-byte string literal not displayed */ TotalNewlyMinted *math_big.Int `` /* 174-byte string literal not displayed */ RewardsPerBlock *math_big.Int `` /* 172-byte string literal not displayed */ RewardsForProtocolSustainability *math_big.Int `` /* 206-byte string literal not displayed */ NodePrice *math_big.Int `` /* 160-byte string literal not displayed */ PrevEpochStartRound uint64 `protobuf:"varint,7,opt,name=PrevEpochStartRound,proto3" json:"PrevEpochStartRound,omitempty"` PrevEpochStartHash []byte `protobuf:"bytes,8,opt,name=PrevEpochStartHash,proto3" json:"PrevEpochStartHash,omitempty"` }
Economics holds the block information for total supply and rewards
func (*Economics) Descriptor ¶
func (*Economics) GetNodePrice ¶
func (*Economics) GetPrevEpochStartHash ¶
func (*Economics) GetPrevEpochStartRound ¶
func (*Economics) GetRewardsForProtocolSustainability ¶
func (*Economics) GetRewardsPerBlock ¶
func (*Economics) GetTotalNewlyMinted ¶
func (*Economics) GetTotalSupply ¶
func (*Economics) GetTotalToDistribute ¶
func (*Economics) MarshalToSizedBuffer ¶
func (*Economics) ProtoMessage ¶
func (*Economics) ProtoMessage()
func (*Economics) SetNodePrice ¶
SetNodePrice sets the node price
func (*Economics) SetPrevEpochStartHash ¶
SetPrevEpochStartHash sets the previous epoch start hash
func (*Economics) SetPrevEpochStartRound ¶
SetPrevEpochStartRound sets the previous epoch start round
func (*Economics) SetRewardsForProtocolSustainability ¶
func (e *Economics) SetRewardsForProtocolSustainability(rewardsForProtocolSustainability *big.Int) error
SetRewardsForProtocolSustainability sets the rewards for protocol sustainability
func (*Economics) SetRewardsPerBlock ¶
SetRewardsPerBlock sets the rewards per block
func (*Economics) SetTotalNewlyMinted ¶
SetTotalNewlyMinted sets the total number of minted tokens
func (*Economics) SetTotalSupply ¶
SetTotalSupply sets the total supply
func (*Economics) SetTotalToDistribute ¶
SetTotalToDistribute sets the total to be distributed
func (*Economics) XXX_DiscardUnknown ¶
func (m *Economics) XXX_DiscardUnknown()
func (*Economics) XXX_Marshal ¶
func (*Economics) XXX_Unmarshal ¶
type EpochStart ¶
type EpochStart struct { LastFinalizedHeaders []EpochStartShardData `protobuf:"bytes,1,rep,name=LastFinalizedHeaders,proto3" json:"LastFinalizedHeaders"` Economics Economics `protobuf:"bytes,2,opt,name=Economics,proto3" json:"Economics"` }
EpochStart holds the block information for end-of-epoch
func (*EpochStart) Descriptor ¶
func (*EpochStart) Descriptor() ([]byte, []int)
func (*EpochStart) Equal ¶
func (this *EpochStart) Equal(that interface{}) bool
func (*EpochStart) GetEconomics ¶
func (m *EpochStart) GetEconomics() Economics
func (*EpochStart) GetEconomicsHandler ¶
func (es *EpochStart) GetEconomicsHandler() data.EconomicsHandler
GetEconomicsHandler returns the economics handler
func (*EpochStart) GetLastFinalizedHeaderHandlers ¶
func (es *EpochStart) GetLastFinalizedHeaderHandlers() []data.EpochStartShardDataHandler
GetLastFinalizedHeaderHandlers returns the last finalized header handlers
func (*EpochStart) GetLastFinalizedHeaders ¶
func (m *EpochStart) GetLastFinalizedHeaders() []EpochStartShardData
func (*EpochStart) GoString ¶
func (this *EpochStart) GoString() string
func (*EpochStart) Marshal ¶
func (m *EpochStart) Marshal() (dAtA []byte, err error)
func (*EpochStart) MarshalToSizedBuffer ¶
func (m *EpochStart) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EpochStart) ProtoMessage ¶
func (*EpochStart) ProtoMessage()
func (*EpochStart) Reset ¶
func (m *EpochStart) Reset()
func (*EpochStart) SetEconomics ¶
func (es *EpochStart) SetEconomics(economicsHandler data.EconomicsHandler) error
SetEconomics sets the economics data
func (*EpochStart) SetLastFinalizedHeaders ¶
func (es *EpochStart) SetLastFinalizedHeaders(epochStartDataHandlers []data.EpochStartShardDataHandler) error
SetLastFinalizedHeaders sets the last finalized header
func (*EpochStart) Size ¶
func (m *EpochStart) Size() (n int)
func (*EpochStart) String ¶
func (this *EpochStart) String() string
func (*EpochStart) Unmarshal ¶
func (m *EpochStart) Unmarshal(dAtA []byte) error
func (*EpochStart) XXX_DiscardUnknown ¶
func (m *EpochStart) XXX_DiscardUnknown()
func (*EpochStart) XXX_Marshal ¶
func (m *EpochStart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EpochStart) XXX_Merge ¶
func (m *EpochStart) XXX_Merge(src proto.Message)
func (*EpochStart) XXX_Size ¶
func (m *EpochStart) XXX_Size() int
func (*EpochStart) XXX_Unmarshal ¶
func (m *EpochStart) XXX_Unmarshal(b []byte) error
type EpochStartShardData ¶
type EpochStartShardData struct { ShardID uint32 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"ShardID,omitempty"` Epoch uint32 `protobuf:"varint,9,opt,name=Epoch,proto3" json:"Epoch,omitempty"` Round uint64 `protobuf:"varint,7,opt,name=Round,proto3" json:"Round,omitempty"` Nonce uint64 `protobuf:"varint,8,opt,name=Nonce,proto3" json:"Nonce,omitempty"` HeaderHash []byte `protobuf:"bytes,2,opt,name=HeaderHash,proto3" json:"HeaderHash,omitempty"` RootHash []byte `protobuf:"bytes,3,opt,name=RootHash,proto3" json:"RootHash,omitempty"` ScheduledRootHash []byte `protobuf:"bytes,10,opt,name=ScheduledRootHash,proto3" json:"ScheduledRootHash,omitempty"` FirstPendingMetaBlock []byte `protobuf:"bytes,4,opt,name=FirstPendingMetaBlock,proto3" json:"FirstPendingMetaBlock,omitempty"` LastFinishedMetaBlock []byte `protobuf:"bytes,5,opt,name=LastFinishedMetaBlock,proto3" json:"LastFinishedMetaBlock,omitempty"` PendingMiniBlockHeaders []MiniBlockHeader `protobuf:"bytes,6,rep,name=PendingMiniBlockHeaders,proto3" json:"PendingMiniBlockHeaders"` }
EpochStartShardData hold the last finalized headers hash and state root hash
func (*EpochStartShardData) Descriptor ¶
func (*EpochStartShardData) Descriptor() ([]byte, []int)
func (*EpochStartShardData) Equal ¶
func (this *EpochStartShardData) Equal(that interface{}) bool
func (*EpochStartShardData) GetEpoch ¶
func (m *EpochStartShardData) GetEpoch() uint32
func (*EpochStartShardData) GetFirstPendingMetaBlock ¶
func (m *EpochStartShardData) GetFirstPendingMetaBlock() []byte
func (*EpochStartShardData) GetHeaderHash ¶
func (m *EpochStartShardData) GetHeaderHash() []byte
func (*EpochStartShardData) GetLastFinishedMetaBlock ¶
func (m *EpochStartShardData) GetLastFinishedMetaBlock() []byte
func (*EpochStartShardData) GetNonce ¶
func (m *EpochStartShardData) GetNonce() uint64
func (*EpochStartShardData) GetPendingMiniBlockHeaderHandlers ¶
func (essd *EpochStartShardData) GetPendingMiniBlockHeaderHandlers() []data.MiniBlockHeaderHandler
GetPendingMiniBlockHeaderHandlers returns the pending miniBlock header handlers
func (*EpochStartShardData) GetPendingMiniBlockHeaders ¶
func (m *EpochStartShardData) GetPendingMiniBlockHeaders() []MiniBlockHeader
func (*EpochStartShardData) GetRootHash ¶
func (m *EpochStartShardData) GetRootHash() []byte
func (*EpochStartShardData) GetRound ¶
func (m *EpochStartShardData) GetRound() uint64
func (*EpochStartShardData) GetScheduledRootHash ¶
func (m *EpochStartShardData) GetScheduledRootHash() []byte
func (*EpochStartShardData) GetShardID ¶
func (m *EpochStartShardData) GetShardID() uint32
func (*EpochStartShardData) GoString ¶
func (this *EpochStartShardData) GoString() string
func (*EpochStartShardData) Marshal ¶
func (m *EpochStartShardData) Marshal() (dAtA []byte, err error)
func (*EpochStartShardData) MarshalTo ¶
func (m *EpochStartShardData) MarshalTo(dAtA []byte) (int, error)
func (*EpochStartShardData) MarshalToSizedBuffer ¶
func (m *EpochStartShardData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EpochStartShardData) ProtoMessage ¶
func (*EpochStartShardData) ProtoMessage()
func (*EpochStartShardData) Reset ¶
func (m *EpochStartShardData) Reset()
func (*EpochStartShardData) SetEpoch ¶
func (essd *EpochStartShardData) SetEpoch(epoch uint32) error
SetEpoch sets the epoch start shardData epoch
func (*EpochStartShardData) SetFirstPendingMetaBlock ¶
func (essd *EpochStartShardData) SetFirstPendingMetaBlock(metaBlock []byte) error
SetFirstPendingMetaBlock sets the epoch start shardData first pending metaBlock
func (*EpochStartShardData) SetHeaderHash ¶
func (essd *EpochStartShardData) SetHeaderHash(hash []byte) error
SetHeaderHash sets the epoch start shardData header hash
func (*EpochStartShardData) SetLastFinishedMetaBlock ¶
func (essd *EpochStartShardData) SetLastFinishedMetaBlock(lastFinishedMetaBlock []byte) error
SetLastFinishedMetaBlock sets the epoch start shardData last finished metaBlock
func (*EpochStartShardData) SetNonce ¶
func (essd *EpochStartShardData) SetNonce(nonce uint64) error
SetNonce sets the epoch start shardData nonce
func (*EpochStartShardData) SetPendingMiniBlockHeaders ¶
func (essd *EpochStartShardData) SetPendingMiniBlockHeaders(miniBlockHeaderHandlers []data.MiniBlockHeaderHandler) error
SetPendingMiniBlockHeaders sets the epoch start shardData pending miniBlock headers
func (*EpochStartShardData) SetRootHash ¶
func (essd *EpochStartShardData) SetRootHash(rootHash []byte) error
SetRootHash sets the epoch start shardData root hash
func (*EpochStartShardData) SetRound ¶
func (essd *EpochStartShardData) SetRound(round uint64) error
SetRound sets the epoch start shardData round
func (*EpochStartShardData) SetScheduledRootHash ¶
func (essd *EpochStartShardData) SetScheduledRootHash(schRootHash []byte) error
SetScheduledRootHash sets the scheduled root hash
func (*EpochStartShardData) SetShardID ¶
func (essd *EpochStartShardData) SetShardID(shardID uint32) error
SetShardID sets the epoch start shardData shardID
func (*EpochStartShardData) Size ¶
func (m *EpochStartShardData) Size() (n int)
func (*EpochStartShardData) String ¶
func (this *EpochStartShardData) String() string
func (*EpochStartShardData) Unmarshal ¶
func (m *EpochStartShardData) Unmarshal(dAtA []byte) error
func (*EpochStartShardData) XXX_DiscardUnknown ¶
func (m *EpochStartShardData) XXX_DiscardUnknown()
func (*EpochStartShardData) XXX_Marshal ¶
func (m *EpochStartShardData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EpochStartShardData) XXX_Merge ¶
func (m *EpochStartShardData) XXX_Merge(src proto.Message)
func (*EpochStartShardData) XXX_Size ¶
func (m *EpochStartShardData) XXX_Size() int
func (*EpochStartShardData) XXX_Unmarshal ¶
func (m *EpochStartShardData) XXX_Unmarshal(b []byte) error
type Header ¶
type Header struct { Nonce uint64 `protobuf:"varint,1,opt,name=Nonce,proto3" json:"Nonce,omitempty"` PrevHash []byte `protobuf:"bytes,2,opt,name=PrevHash,proto3" json:"PrevHash,omitempty"` PrevRandSeed []byte `protobuf:"bytes,3,opt,name=PrevRandSeed,proto3" json:"PrevRandSeed,omitempty"` RandSeed []byte `protobuf:"bytes,4,opt,name=RandSeed,proto3" json:"RandSeed,omitempty"` PubKeysBitmap []byte `protobuf:"bytes,5,opt,name=PubKeysBitmap,proto3" json:"PubKeysBitmap,omitempty"` ShardID uint32 `protobuf:"varint,6,opt,name=ShardID,proto3" json:"ShardID,omitempty"` TimeStamp uint64 `protobuf:"varint,7,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"` Round uint64 `protobuf:"varint,8,opt,name=Round,proto3" json:"Round,omitempty"` Epoch uint32 `protobuf:"varint,9,opt,name=Epoch,proto3" json:"Epoch,omitempty"` BlockBodyType Type `protobuf:"varint,10,opt,name=BlockBodyType,proto3,enum=proto.Type" json:"BlockBodyType,omitempty"` Signature []byte `protobuf:"bytes,11,opt,name=Signature,proto3" json:"Signature,omitempty"` LeaderSignature []byte `protobuf:"bytes,12,opt,name=LeaderSignature,proto3" json:"LeaderSignature,omitempty"` MiniBlockHeaders []MiniBlockHeader `protobuf:"bytes,13,rep,name=MiniBlockHeaders,proto3" json:"MiniBlockHeaders"` PeerChanges []PeerChange `protobuf:"bytes,14,rep,name=PeerChanges,proto3" json:"PeerChanges"` RootHash []byte `protobuf:"bytes,15,opt,name=RootHash,proto3" json:"RootHash,omitempty"` MetaBlockHashes [][]byte `protobuf:"bytes,16,rep,name=MetaBlockHashes,proto3" json:"MetaBlockHashes,omitempty"` TxCount uint32 `protobuf:"varint,17,opt,name=TxCount,proto3" json:"TxCount,omitempty"` EpochStartMetaHash []byte `protobuf:"bytes,18,opt,name=EpochStartMetaHash,proto3" json:"EpochStartMetaHash,omitempty"` ReceiptsHash []byte `protobuf:"bytes,19,opt,name=ReceiptsHash,proto3" json:"ReceiptsHash,omitempty"` ChainID []byte `protobuf:"bytes,20,opt,name=ChainID,proto3" json:"ChainID,omitempty"` SoftwareVersion []byte `protobuf:"bytes,21,opt,name=SoftwareVersion,proto3" json:"SoftwareVersion,omitempty"` AccumulatedFees *math_big.Int `` /* 173-byte string literal not displayed */ DeveloperFees *math_big.Int `` /* 169-byte string literal not displayed */ Reserved []byte `protobuf:"bytes,24,opt,name=Reserved,proto3" json:"Reserved,omitempty"` }
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 (*Header) Descriptor ¶
func (*Header) GetAccumulatedFees ¶
func (*Header) GetAdditionalData ¶
func (h *Header) GetAdditionalData() headerVersionData.HeaderAdditionalData
GetAdditionalData gets the additional version-related data for the header
func (*Header) GetBlockBodyType ¶
func (*Header) GetBlockBodyTypeInt32 ¶
GetBlockBodyTypeInt32 returns the block body type as int32
func (*Header) GetChainID ¶
func (*Header) GetDeveloperFees ¶
func (*Header) GetEpochStartMetaHash ¶
func (*Header) GetLeaderSignature ¶
func (*Header) GetMetaBlockHashes ¶
func (*Header) GetMiniBlockHeaderHandlers ¶
func (h *Header) GetMiniBlockHeaderHandlers() []data.MiniBlockHeaderHandler
GetMiniBlockHeaderHandlers returns the miniBlock headers as an array of miniBlock header handlers
func (*Header) GetMiniBlockHeaders ¶
func (m *Header) GetMiniBlockHeaders() []MiniBlockHeader
func (*Header) GetMiniBlockHeadersHashes ¶
GetMiniBlockHeadersHashes gets the miniblock hashes
func (*Header) GetMiniBlockHeadersWithDst ¶
GetMiniBlockHeadersWithDst as a map of hashes and sender IDs
func (*Header) GetOrderedCrossMiniblocksWithDst ¶
func (h *Header) GetOrderedCrossMiniblocksWithDst(destId uint32) []*data.MiniBlockInfo
GetOrderedCrossMiniblocksWithDst gets all cross miniblocks with the given destination shard ID, ordered in a chronological way, taking into consideration the round in which they were created/executed in the sender shard
func (*Header) GetPeerChanges ¶
func (m *Header) GetPeerChanges() []PeerChange
func (*Header) GetPrevHash ¶
func (*Header) GetPrevRandSeed ¶
func (*Header) GetPubKeysBitmap ¶
func (*Header) GetRandSeed ¶
func (*Header) GetReceiptsHash ¶
func (*Header) GetReserved ¶
func (*Header) GetRootHash ¶
func (*Header) GetShardID ¶
func (*Header) GetSignature ¶
func (*Header) GetSoftwareVersion ¶
func (*Header) GetTimeStamp ¶
func (*Header) GetTxCount ¶
func (*Header) GetValidatorStatsRootHash ¶
GetValidatorStatsRootHash returns the root hash for the validator statistics trie
func (*Header) HasScheduledMiniBlocks ¶
HasScheduledMiniBlocks returns false as v1 Header has no support for scheduled data
func (*Header) HasScheduledSupport ¶
HasScheduledSupport returns false as the first block version does not support scheduled data
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) MapMiniBlockHashesToShards ¶
MapMiniBlockHashesToShards is a map of mini block hashes and sender IDs
func (*Header) MarshalToSizedBuffer ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) SetAccumulatedFees ¶
SetAccumulatedFees sets the accumulated fees in the header
func (*Header) SetAdditionalData ¶
func (h *Header) SetAdditionalData(_ headerVersionData.HeaderAdditionalData) error
SetAdditionalData sets the additional data for the header
func (*Header) SetChainID ¶
SetChainID sets the chain ID on which this block is valid on
func (*Header) SetDeveloperFees ¶
SetDeveloperFees sets the developer fees in the header
func (*Header) SetEpochStartMetaHash ¶
SetEpochStartMetaHash sets the epoch start metaBlock hash
func (*Header) SetLeaderSignature ¶
SetLeaderSignature will set the leader's signature
func (*Header) SetMetaBlockHashes ¶
SetMetaBlockHashes sets the metaBlock hashes
func (*Header) SetMiniBlockHeaderHandlers ¶
func (h *Header) SetMiniBlockHeaderHandlers(mbHeaderHandlers []data.MiniBlockHeaderHandler) error
SetMiniBlockHeaderHandlers sets the miniBlock headers from the given miniBlock header handlers
func (*Header) SetPrevHash ¶
SetPrevHash sets prev hash
func (*Header) SetPrevRandSeed ¶
SetPrevRandSeed sets previous random seed
func (*Header) SetPubKeysBitmap ¶
SetPubKeysBitmap sets public key bitmap
func (*Header) SetRandSeed ¶
SetRandSeed sets previous random seed
func (*Header) SetReceiptsHash ¶
SetReceiptsHash sets the receipts hash
func (*Header) SetRootHash ¶
SetRootHash sets root hash
func (*Header) SetScheduledRootHash ¶
SetScheduledRootHash not supported by V1 header
func (*Header) SetShardID ¶
SetShardID sets header shard ID
func (*Header) SetSignature ¶
SetSignature sets header signature
func (*Header) SetSoftwareVersion ¶
SetSoftwareVersion sets the software version of the header
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 sets the root hash for the validator statistics trie
func (*Header) ShallowClone ¶
func (h *Header) ShallowClone() data.HeaderHandler
ShallowClone returns a clone of the object
func (*Header) ValidateHeaderVersion ¶
ValidateHeaderVersion does extra validation for header version
func (*Header) XXX_DiscardUnknown ¶
func (m *Header) XXX_DiscardUnknown()
func (*Header) XXX_Marshal ¶
func (*Header) XXX_Unmarshal ¶
type HeaderV2 ¶
type HeaderV2 struct { Header *Header `protobuf:"bytes,1,opt,name=Header,proto3" json:"Header,omitempty"` ScheduledRootHash []byte `protobuf:"bytes,2,opt,name=ScheduledRootHash,proto3" json:"ScheduledRootHash,omitempty"` ScheduledAccumulatedFees *math_big.Int `` /* 190-byte string literal not displayed */ ScheduledDeveloperFees *math_big.Int `` /* 186-byte string literal not displayed */ ScheduledGasProvided uint64 `protobuf:"varint,5,opt,name=ScheduledGasProvided,proto3" json:"ScheduledGasProvided,omitempty"` ScheduledGasPenalized uint64 `protobuf:"varint,6,opt,name=ScheduledGasPenalized,proto3" json:"ScheduledGasPenalized,omitempty"` ScheduledGasRefunded uint64 `protobuf:"varint,7,opt,name=ScheduledGasRefunded,proto3" json:"ScheduledGasRefunded,omitempty"` }
HeaderV2 extends the Header structure with extra fields for version 2
func (*HeaderV2) Descriptor ¶
func (*HeaderV2) GetAccumulatedFees ¶
GetAccumulatedFees returns the block accumulated fees
func (*HeaderV2) GetAdditionalData ¶
func (hv2 *HeaderV2) GetAdditionalData() headerVersionData.HeaderAdditionalData
GetAdditionalData gets the additional version related data for the header
func (*HeaderV2) GetBlockBodyTypeInt32 ¶
GetBlockBodyTypeInt32 returns the block body type as int32
func (*HeaderV2) GetChainID ¶
GetChainID returns the chain ID
func (*HeaderV2) GetDeveloperFees ¶
GetDeveloperFees returns the block developer fees
func (*HeaderV2) GetEpochStartMetaHash ¶
GetEpochStartMetaHash returns the epoch start metaBlock hash
func (*HeaderV2) GetLeaderSignature ¶
GetLeaderSignature returns the leader signature on top of the finalized (signed) header
func (*HeaderV2) GetMetaBlockHashes ¶
GetMetaBlockHashes returns the metaBlock hashes
func (*HeaderV2) GetMiniBlockHeaderHandlers ¶
func (hv2 *HeaderV2) GetMiniBlockHeaderHandlers() []data.MiniBlockHeaderHandler
GetMiniBlockHeaderHandlers returns the miniBlock headers as an array of miniBlock header handlers
func (*HeaderV2) GetMiniBlockHeadersHashes ¶
GetMiniBlockHeadersHashes gets the miniblock hashes
func (*HeaderV2) GetMiniBlockHeadersWithDst ¶
GetMiniBlockHeadersWithDst as a map of hashes and sender IDs
func (*HeaderV2) GetOrderedCrossMiniblocksWithDst ¶
func (hv2 *HeaderV2) GetOrderedCrossMiniblocksWithDst(destId uint32) []*data.MiniBlockInfo
GetOrderedCrossMiniblocksWithDst gets all cross miniblocks with the given destination shard ID, ordered in a chronological way, taking into consideration the round in which they were created/executed in the sender shard
func (*HeaderV2) GetPrevHash ¶
GetPrevHash returns the header previous header hash
func (*HeaderV2) GetPrevRandSeed ¶
GetPrevRandSeed returns the header previous random seed
func (*HeaderV2) GetPubKeysBitmap ¶
GetPubKeysBitmap returns the header public key bitmap for the aggregated signatures
func (*HeaderV2) GetRandSeed ¶
GetRandSeed returns the header random seed
func (*HeaderV2) GetReceiptsHash ¶
GetReceiptsHash returns the header receipt hash
func (*HeaderV2) GetReserved ¶
GetReserved returns the reserved field
func (*HeaderV2) GetRootHash ¶
GetRootHash returns the header root hash
func (*HeaderV2) GetScheduledAccumulatedFees ¶
func (*HeaderV2) GetScheduledDeveloperFees ¶
func (*HeaderV2) GetScheduledGasPenalized ¶
func (*HeaderV2) GetScheduledGasProvided ¶
func (*HeaderV2) GetScheduledGasRefunded ¶
func (*HeaderV2) GetScheduledRootHash ¶
func (*HeaderV2) GetShardID ¶
GetShardID returns the header shardID
func (*HeaderV2) GetSignature ¶
GetSignature returns the header aggregated signature
func (*HeaderV2) GetSoftwareVersion ¶
GetSoftwareVersion returns the header software version
func (*HeaderV2) GetTimeStamp ¶
GetTimeStamp returns the header timestamp
func (*HeaderV2) GetTxCount ¶
GetTxCount returns the number of txs included in the block
func (*HeaderV2) HasScheduledMiniBlocks ¶
HasScheduledMiniBlocks returns true if the header has scheduled miniBlock headers
func (*HeaderV2) HasScheduledSupport ¶
HasScheduledSupport returns true as the second block version does support scheduled data
func (*HeaderV2) IsInterfaceNil ¶
IsInterfaceNil returns true if there is no value under the interface
func (*HeaderV2) IsStartOfEpochBlock ¶
IsStartOfEpochBlock verifies if the block is of type start of epoch
func (*HeaderV2) MapMiniBlockHashesToShards ¶
MapMiniBlockHashesToShards is a map of mini block hashes and sender IDs
func (*HeaderV2) MarshalToSizedBuffer ¶
func (*HeaderV2) ProtoMessage ¶
func (*HeaderV2) ProtoMessage()
func (*HeaderV2) SetAccumulatedFees ¶
SetAccumulatedFees sets the accumulated fees in the header
func (*HeaderV2) SetAdditionalData ¶
func (hv2 *HeaderV2) SetAdditionalData(headerVersionData headerVersionData.HeaderAdditionalData) error
SetAdditionalData sets the additional version related data for the header
func (*HeaderV2) SetChainID ¶
SetChainID sets the chain ID on which this block is valid on
func (*HeaderV2) SetDeveloperFees ¶
SetDeveloperFees sets the developer fees in the header
func (*HeaderV2) SetEpochStartMetaHash ¶
SetEpochStartMetaHash sets the epoch start metaBlock hash
func (*HeaderV2) SetLeaderSignature ¶
SetLeaderSignature will set the leader's signature
func (*HeaderV2) SetMetaBlockHashes ¶
SetMetaBlockHashes sets the metaBlock hashes
func (*HeaderV2) SetMiniBlockHeaderHandlers ¶
func (hv2 *HeaderV2) SetMiniBlockHeaderHandlers(mbHeaderHandlers []data.MiniBlockHeaderHandler) error
SetMiniBlockHeaderHandlers sets the miniBlock headers from the given miniBlock header handlers
func (*HeaderV2) SetPrevHash ¶
SetPrevHash sets prev hash
func (*HeaderV2) SetPrevRandSeed ¶
SetPrevRandSeed sets previous random seed
func (*HeaderV2) SetPubKeysBitmap ¶
SetPubKeysBitmap sets public key bitmap
func (*HeaderV2) SetRandSeed ¶
SetRandSeed sets previous random seed
func (*HeaderV2) SetReceiptsHash ¶
SetReceiptsHash sets the receipts hash
func (*HeaderV2) SetRootHash ¶
SetRootHash sets root hash
func (*HeaderV2) SetScheduledAccumulatedFees ¶
SetScheduledAccumulatedFees sets the scheduled accumulated fees
func (*HeaderV2) SetScheduledDeveloperFees ¶
SetScheduledDeveloperFees sets the scheduled developer fees
func (*HeaderV2) SetScheduledGasPenalized ¶
SetScheduledGasPenalized sets the scheduled SC calls penalized gas
func (*HeaderV2) SetScheduledGasProvided ¶
SetScheduledGasProvided sets the scheduled SC calls provided gas
func (*HeaderV2) SetScheduledGasRefunded ¶
SetScheduledGasRefunded sets the scheduled SC calls refunded gas
func (*HeaderV2) SetScheduledRootHash ¶
SetScheduledRootHash sets the scheduled root hash
func (*HeaderV2) SetShardID ¶
SetShardID sets header shard ID
func (*HeaderV2) SetSignature ¶
SetSignature sets header signature
func (*HeaderV2) SetSoftwareVersion ¶
SetSoftwareVersion sets the software version of the header
func (*HeaderV2) SetTimeStamp ¶
SetTimeStamp sets header timestamp
func (*HeaderV2) SetTxCount ¶
SetTxCount sets the transaction count of the block associated with this header
func (*HeaderV2) ShallowClone ¶
func (hv2 *HeaderV2) ShallowClone() data.HeaderHandler
ShallowClone returns a clone of the object
func (*HeaderV2) ValidateHeaderVersion ¶
ValidateHeaderVersion does extra validation for header version
func (*HeaderV2) XXX_DiscardUnknown ¶
func (m *HeaderV2) XXX_DiscardUnknown()
func (*HeaderV2) XXX_Marshal ¶
func (*HeaderV2) XXX_Unmarshal ¶
type MetaBlock ¶
type MetaBlock struct { Nonce uint64 `protobuf:"varint,1,opt,name=Nonce,proto3" json:"Nonce,omitempty"` Epoch uint32 `protobuf:"varint,2,opt,name=Epoch,proto3" json:"Epoch,omitempty"` Round uint64 `protobuf:"varint,3,opt,name=Round,proto3" json:"Round,omitempty"` TimeStamp uint64 `protobuf:"varint,4,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"` ShardInfo []ShardData `protobuf:"bytes,5,rep,name=ShardInfo,proto3" json:"ShardInfo"` PeerInfo []PeerData `protobuf:"bytes,6,rep,name=PeerInfo,proto3" json:"PeerInfo"` Signature []byte `protobuf:"bytes,7,opt,name=Signature,proto3" json:"Signature,omitempty"` LeaderSignature []byte `protobuf:"bytes,8,opt,name=LeaderSignature,proto3" json:"LeaderSignature,omitempty"` PubKeysBitmap []byte `protobuf:"bytes,9,opt,name=PubKeysBitmap,proto3" json:"PubKeysBitmap,omitempty"` PrevHash []byte `protobuf:"bytes,10,opt,name=PrevHash,proto3" json:"PrevHash,omitempty"` PrevRandSeed []byte `protobuf:"bytes,11,opt,name=PrevRandSeed,proto3" json:"PrevRandSeed,omitempty"` RandSeed []byte `protobuf:"bytes,12,opt,name=RandSeed,proto3" json:"RandSeed,omitempty"` RootHash []byte `protobuf:"bytes,13,opt,name=RootHash,proto3" json:"RootHash,omitempty"` ValidatorStatsRootHash []byte `protobuf:"bytes,14,opt,name=ValidatorStatsRootHash,proto3" json:"ValidatorStatsRootHash,omitempty"` MiniBlockHeaders []MiniBlockHeader `protobuf:"bytes,16,rep,name=MiniBlockHeaders,proto3" json:"MiniBlockHeaders"` ReceiptsHash []byte `protobuf:"bytes,17,opt,name=ReceiptsHash,proto3" json:"ReceiptsHash,omitempty"` EpochStart EpochStart `protobuf:"bytes,18,opt,name=EpochStart,proto3" json:"EpochStart"` ChainID []byte `protobuf:"bytes,19,opt,name=ChainID,proto3" json:"ChainID,omitempty"` SoftwareVersion []byte `protobuf:"bytes,20,opt,name=SoftwareVersion,proto3" json:"SoftwareVersion,omitempty"` AccumulatedFees *math_big.Int `` /* 173-byte string literal not displayed */ AccumulatedFeesInEpoch *math_big.Int `` /* 187-byte string literal not displayed */ DeveloperFees *math_big.Int `` /* 169-byte string literal not displayed */ DevFeesInEpoch *math_big.Int `` /* 171-byte string literal not displayed */ TxCount uint32 `protobuf:"varint,25,opt,name=TxCount,proto3" json:"TxCount,omitempty"` Reserved []byte `protobuf:"bytes,26,opt,name=Reserved,proto3" json:"Reserved,omitempty"` }
MetaBlock holds the data that will be saved to the metachain each round
func (*MetaBlock) Descriptor ¶
func (*MetaBlock) GetAccumulatedFees ¶
func (*MetaBlock) GetAccumulatedFeesInEpoch ¶
func (*MetaBlock) GetAdditionalData ¶
func (m *MetaBlock) GetAdditionalData() headerVersionData.HeaderAdditionalData
GetAdditionalData gets the additional version-related data for the header
func (*MetaBlock) GetChainID ¶
func (*MetaBlock) GetDevFeesInEpoch ¶
func (*MetaBlock) GetDeveloperFees ¶
func (*MetaBlock) GetEpochStart ¶
func (m *MetaBlock) GetEpochStart() EpochStart
func (*MetaBlock) GetEpochStartHandler ¶
func (m *MetaBlock) GetEpochStartHandler() data.EpochStartHandler
GetEpochStartHandler -
func (*MetaBlock) GetLeaderSignature ¶
func (*MetaBlock) GetMiniBlockHeaderHandlers ¶
func (m *MetaBlock) GetMiniBlockHeaderHandlers() []data.MiniBlockHeaderHandler
GetMiniBlockHeaderHandlers returns the miniBlock headers as an array of miniBlock header handlers
func (*MetaBlock) GetMiniBlockHeaders ¶
func (m *MetaBlock) GetMiniBlockHeaders() []MiniBlockHeader
func (*MetaBlock) GetMiniBlockHeadersHashes ¶
GetMiniBlockHeadersHashes gets the miniblock hashes
func (*MetaBlock) GetMiniBlockHeadersWithDst ¶
GetMiniBlockHeadersWithDst as a map of hashes and sender IDs
func (*MetaBlock) GetOrderedCrossMiniblocksWithDst ¶
func (m *MetaBlock) GetOrderedCrossMiniblocksWithDst(destId uint32) []*data.MiniBlockInfo
GetOrderedCrossMiniblocksWithDst gets all cross miniblocks with the given destination shard ID, ordered in a chronological way, taking into consideration the round in which they were created/executed in the sender shard
func (*MetaBlock) GetPeerInfo ¶
func (*MetaBlock) GetPrevHash ¶
func (*MetaBlock) GetPrevRandSeed ¶
func (*MetaBlock) GetPubKeysBitmap ¶
func (*MetaBlock) GetRandSeed ¶
func (*MetaBlock) GetReceiptsHash ¶
func (*MetaBlock) GetReserved ¶
func (*MetaBlock) GetRootHash ¶
func (*MetaBlock) GetShardID ¶
GetShardID returns the metachain shard id
func (*MetaBlock) GetShardInfo ¶
func (*MetaBlock) GetShardInfoHandlers ¶
func (m *MetaBlock) GetShardInfoHandlers() []data.ShardDataHandler
GetShardInfoHandlers - gets the shardInfo as an array of ShardDataHandler
func (*MetaBlock) GetSignature ¶
func (*MetaBlock) GetSoftwareVersion ¶
func (*MetaBlock) GetTimeStamp ¶
func (*MetaBlock) GetTxCount ¶
func (*MetaBlock) GetValidatorStatsRootHash ¶
func (*MetaBlock) HasScheduledMiniBlocks ¶
HasScheduledMiniBlocks returns true if the metaBlock holds scheduled miniBlocks
func (*MetaBlock) HasScheduledSupport ¶
HasScheduledSupport returns false as the initial metaBlock version does not support scheduled data
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) MarshalToSizedBuffer ¶
func (*MetaBlock) ProtoMessage ¶
func (*MetaBlock) ProtoMessage()
func (*MetaBlock) SetAccumulatedFees ¶
SetAccumulatedFees sets the accumulated fees in the header
func (*MetaBlock) SetAccumulatedFeesInEpoch ¶
SetAccumulatedFeesInEpoch sets the epoch accumulated fees in the header
func (*MetaBlock) SetAdditionalData ¶
func (m *MetaBlock) SetAdditionalData(_ headerVersionData.HeaderAdditionalData) error
SetAdditionalData sets the additional version-related data
func (*MetaBlock) SetChainID ¶
SetChainID sets the chain ID on which this block is valid on
func (*MetaBlock) SetDevFeesInEpoch ¶
SetDevFeesInEpoch sets the developer fees in the header
func (*MetaBlock) SetDeveloperFees ¶
SetDeveloperFees sets the developer fees in the header
func (*MetaBlock) SetLeaderSignature ¶
SetLeaderSignature will set the leader's signature
func (*MetaBlock) SetMiniBlockHeaderHandlers ¶
func (m *MetaBlock) SetMiniBlockHeaderHandlers(mbHeaderHandlers []data.MiniBlockHeaderHandler) error
SetMiniBlockHeaderHandlers sets the miniBlock headers from the given miniBlock header handlers
func (*MetaBlock) SetPrevHash ¶
SetPrevHash sets prev hash
func (*MetaBlock) SetPrevRandSeed ¶
SetPrevRandSeed sets the previous randomness seed
func (*MetaBlock) SetPubKeysBitmap ¶
SetPubKeysBitmap sets public key bitmap
func (*MetaBlock) SetRandSeed ¶
SetRandSeed sets the current random seed
func (*MetaBlock) SetReceiptsHash ¶
SetReceiptsHash sets the receipts hash
func (*MetaBlock) SetRootHash ¶
SetRootHash sets root hash
func (*MetaBlock) SetScheduledRootHash ¶
SetScheduledRootHash not supported on the first version of metablock
func (*MetaBlock) SetShardID ¶
SetShardID sets header shard ID
func (*MetaBlock) SetShardInfoHandlers ¶
func (m *MetaBlock) SetShardInfoHandlers(shardInfo []data.ShardDataHandler) error
SetShardInfoHandlers -
func (*MetaBlock) SetSignature ¶
SetSignature set header signature
func (*MetaBlock) SetSoftwareVersion ¶
SetSoftwareVersion sets the software version of the block
func (*MetaBlock) SetTimeStamp ¶
SetTimeStamp sets header timestamp
func (*MetaBlock) SetTxCount ¶
SetTxCount sets the transaction count of the current meta block
func (*MetaBlock) SetValidatorStatsRootHash ¶
SetValidatorStatsRootHash sets the root hash for the validator statistics trie
func (*MetaBlock) ShallowClone ¶
func (m *MetaBlock) ShallowClone() data.HeaderHandler
ShallowClone will return a clone of the object
func (*MetaBlock) ValidateHeaderVersion ¶
ValidateHeaderVersion - always valid for initial version
func (*MetaBlock) XXX_DiscardUnknown ¶
func (m *MetaBlock) XXX_DiscardUnknown()
func (*MetaBlock) XXX_Marshal ¶
func (*MetaBlock) XXX_Unmarshal ¶
type MetaTriggerRegistry ¶
type MetaTriggerRegistry struct { Epoch uint32 `protobuf:"varint,1,opt,name=Epoch,proto3" json:"Epoch,omitempty"` CurrentRound uint64 `protobuf:"varint,2,opt,name=CurrentRound,proto3" json:"CurrentRound,omitempty"` EpochFinalityAttestingRound uint64 `protobuf:"varint,3,opt,name=EpochFinalityAttestingRound,proto3" json:"EpochFinalityAttestingRound,omitempty"` CurrEpochStartRound uint64 `protobuf:"varint,4,opt,name=CurrEpochStartRound,proto3" json:"CurrEpochStartRound,omitempty"` PrevEpochStartRound uint64 `protobuf:"varint,5,opt,name=PrevEpochStartRound,proto3" json:"PrevEpochStartRound,omitempty"` EpochStartMetaHash []byte `protobuf:"bytes,6,opt,name=EpochStartMetaHash,proto3" json:"EpochStartMetaHash,omitempty"` EpochStartMeta *MetaBlock `protobuf:"bytes,7,opt,name=EpochStartMeta,proto3" json:"EpochStartMeta,omitempty"` }
func (*MetaTriggerRegistry) Descriptor ¶
func (*MetaTriggerRegistry) Descriptor() ([]byte, []int)
func (*MetaTriggerRegistry) Equal ¶
func (this *MetaTriggerRegistry) Equal(that interface{}) bool
func (*MetaTriggerRegistry) GetCurrEpochStartRound ¶
func (m *MetaTriggerRegistry) GetCurrEpochStartRound() uint64
func (*MetaTriggerRegistry) GetCurrentRound ¶
func (m *MetaTriggerRegistry) GetCurrentRound() uint64
func (*MetaTriggerRegistry) GetEpoch ¶
func (m *MetaTriggerRegistry) GetEpoch() uint32
func (*MetaTriggerRegistry) GetEpochFinalityAttestingRound ¶
func (m *MetaTriggerRegistry) GetEpochFinalityAttestingRound() uint64
func (*MetaTriggerRegistry) GetEpochStartMeta ¶
func (m *MetaTriggerRegistry) GetEpochStartMeta() *MetaBlock
func (*MetaTriggerRegistry) GetEpochStartMetaHash ¶
func (m *MetaTriggerRegistry) GetEpochStartMetaHash() []byte
func (*MetaTriggerRegistry) GetPrevEpochStartRound ¶
func (m *MetaTriggerRegistry) GetPrevEpochStartRound() uint64
func (*MetaTriggerRegistry) GoString ¶
func (this *MetaTriggerRegistry) GoString() string
func (*MetaTriggerRegistry) Marshal ¶
func (m *MetaTriggerRegistry) Marshal() (dAtA []byte, err error)
func (*MetaTriggerRegistry) MarshalTo ¶
func (m *MetaTriggerRegistry) MarshalTo(dAtA []byte) (int, error)
func (*MetaTriggerRegistry) MarshalToSizedBuffer ¶
func (m *MetaTriggerRegistry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MetaTriggerRegistry) ProtoMessage ¶
func (*MetaTriggerRegistry) ProtoMessage()
func (*MetaTriggerRegistry) Reset ¶
func (m *MetaTriggerRegistry) Reset()
func (*MetaTriggerRegistry) Size ¶
func (m *MetaTriggerRegistry) Size() (n int)
func (*MetaTriggerRegistry) String ¶
func (this *MetaTriggerRegistry) String() string
func (*MetaTriggerRegistry) Unmarshal ¶
func (m *MetaTriggerRegistry) Unmarshal(dAtA []byte) error
func (*MetaTriggerRegistry) XXX_DiscardUnknown ¶
func (m *MetaTriggerRegistry) XXX_DiscardUnknown()
func (*MetaTriggerRegistry) XXX_Marshal ¶
func (m *MetaTriggerRegistry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MetaTriggerRegistry) XXX_Merge ¶
func (m *MetaTriggerRegistry) XXX_Merge(src proto.Message)
func (*MetaTriggerRegistry) XXX_Size ¶
func (m *MetaTriggerRegistry) XXX_Size() int
func (*MetaTriggerRegistry) XXX_Unmarshal ¶
func (m *MetaTriggerRegistry) XXX_Unmarshal(b []byte) error
type MiniBlock ¶
type MiniBlock struct { TxHashes [][]byte `protobuf:"bytes,1,rep,name=TxHashes,proto3" json:"TxHashes,omitempty"` ReceiverShardID uint32 `protobuf:"varint,2,opt,name=ReceiverShardID,proto3" json:"ReceiverShardID,omitempty"` SenderShardID uint32 `protobuf:"varint,3,opt,name=SenderShardID,proto3" json:"SenderShardID,omitempty"` Type Type `protobuf:"varint,4,opt,name=Type,proto3,enum=proto.Type" json:"Type,omitempty"` Reserved []byte `protobuf:"bytes,5,opt,name=Reserved,proto3" json:"Reserved,omitempty"` }
func (*MiniBlock) Descriptor ¶
func (*MiniBlock) GetMiniBlockReserved ¶
func (mb *MiniBlock) GetMiniBlockReserved() (*MiniBlockReserved, error)
GetMiniBlockReserved returns the unmarshalled reserved field for the miniblock
func (*MiniBlock) GetProcessingType ¶
GetProcessingType returns the miniBlock processing type as a int32
func (*MiniBlock) GetReceiverShardID ¶
func (*MiniBlock) GetReserved ¶
func (*MiniBlock) GetSenderShardID ¶
func (*MiniBlock) GetTxHashes ¶
func (*MiniBlock) GetTxsTypeFromMiniBlock ¶
GetTxsTypeFromMiniBlock returns all the txs type from mini block
func (*MiniBlock) IsScheduledMiniBlock ¶
IsScheduledMiniBlock returns if the mini block is of type scheduled or not
func (*MiniBlock) MarshalToSizedBuffer ¶
func (*MiniBlock) ProtoMessage ¶
func (*MiniBlock) ProtoMessage()
func (*MiniBlock) SetMiniBlockReserved ¶
func (mb *MiniBlock) SetMiniBlockReserved(mbr *MiniBlockReserved) error
SetMiniBlockReserved sets the reserved field for the miniBlock with the given parameter
func (*MiniBlock) XXX_DiscardUnknown ¶
func (m *MiniBlock) XXX_DiscardUnknown()
func (*MiniBlock) XXX_Marshal ¶
func (*MiniBlock) XXX_Unmarshal ¶
type MiniBlockHeader ¶
type MiniBlockHeader struct { Hash []byte `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"` SenderShardID uint32 `protobuf:"varint,2,opt,name=SenderShardID,proto3" json:"SenderShardID,omitempty"` ReceiverShardID uint32 `protobuf:"varint,3,opt,name=ReceiverShardID,proto3" json:"ReceiverShardID,omitempty"` TxCount uint32 `protobuf:"varint,4,opt,name=TxCount,proto3" json:"TxCount,omitempty"` Type Type `protobuf:"varint,5,opt,name=Type,proto3,enum=proto.Type" json:"Type,omitempty"` Reserved []byte `protobuf:"bytes,6,opt,name=Reserved,proto3" json:"Reserved,omitempty"` }
func (*MiniBlockHeader) Descriptor ¶
func (*MiniBlockHeader) Descriptor() ([]byte, []int)
func (*MiniBlockHeader) Equal ¶
func (this *MiniBlockHeader) Equal(that interface{}) bool
func (*MiniBlockHeader) GetConstructionState ¶
func (m *MiniBlockHeader) GetConstructionState() int32
GetConstructionState returns the construction state of the miniBlock
func (*MiniBlockHeader) GetHash ¶
func (m *MiniBlockHeader) GetHash() []byte
func (*MiniBlockHeader) GetIndexOfFirstTxProcessed ¶
func (m *MiniBlockHeader) GetIndexOfFirstTxProcessed() int32
GetIndexOfFirstTxProcessed returns index of the first transaction processed in the miniBlock
func (*MiniBlockHeader) GetIndexOfLastTxProcessed ¶
func (m *MiniBlockHeader) GetIndexOfLastTxProcessed() int32
GetIndexOfLastTxProcessed returns index of the last transaction processed in the miniBlock
func (*MiniBlockHeader) GetProcessingType ¶
func (m *MiniBlockHeader) GetProcessingType() int32
GetProcessingType returns the miniBlock processing type as a int32
func (*MiniBlockHeader) GetReceiverShardID ¶
func (m *MiniBlockHeader) GetReceiverShardID() uint32
func (*MiniBlockHeader) GetReserved ¶
func (m *MiniBlockHeader) GetReserved() []byte
func (*MiniBlockHeader) GetSenderShardID ¶
func (m *MiniBlockHeader) GetSenderShardID() uint32
func (*MiniBlockHeader) GetTxCount ¶
func (m *MiniBlockHeader) GetTxCount() uint32
func (*MiniBlockHeader) GetType ¶
func (m *MiniBlockHeader) GetType() Type
func (*MiniBlockHeader) GetTypeInt32 ¶
func (m *MiniBlockHeader) GetTypeInt32() int32
GetTypeInt32 gets the miniBlock type
func (*MiniBlockHeader) GoString ¶
func (this *MiniBlockHeader) GoString() string
func (*MiniBlockHeader) IsFinal ¶
func (m *MiniBlockHeader) IsFinal() bool
IsFinal returns true if the miniBlock is final
func (*MiniBlockHeader) Marshal ¶
func (m *MiniBlockHeader) Marshal() (dAtA []byte, err error)
func (*MiniBlockHeader) MarshalToSizedBuffer ¶
func (m *MiniBlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MiniBlockHeader) ProtoMessage ¶
func (*MiniBlockHeader) ProtoMessage()
func (*MiniBlockHeader) Reset ¶
func (m *MiniBlockHeader) Reset()
func (*MiniBlockHeader) SetConstructionState ¶
func (m *MiniBlockHeader) SetConstructionState(state int32) error
SetConstructionState sets the construction state of the miniBlock
func (*MiniBlockHeader) SetHash ¶
func (m *MiniBlockHeader) SetHash(hash []byte) error
SetHash sets the miniBlock hash
func (*MiniBlockHeader) SetIndexOfFirstTxProcessed ¶
func (m *MiniBlockHeader) SetIndexOfFirstTxProcessed(indexOfFirstTxProcessed int32) error
SetIndexOfFirstTxProcessed sets index of the first transaction processed in the miniBlock
func (*MiniBlockHeader) SetIndexOfLastTxProcessed ¶
func (m *MiniBlockHeader) SetIndexOfLastTxProcessed(indexOfLastTxProcessed int32) error
SetIndexOfLastTxProcessed sets index of the last transaction processed in the miniBlock
func (*MiniBlockHeader) SetProcessingType ¶
func (m *MiniBlockHeader) SetProcessingType(procType int32) error
SetProcessingType sets the miniBlock processing type
func (*MiniBlockHeader) SetReceiverShardID ¶
func (m *MiniBlockHeader) SetReceiverShardID(shardID uint32) error
SetReceiverShardID sets the miniBlock receiver ShardID
func (*MiniBlockHeader) SetReserved ¶
func (m *MiniBlockHeader) SetReserved(reserved []byte) error
SetReserved sets the miniBlock reserved field
func (*MiniBlockHeader) SetSenderShardID ¶
func (m *MiniBlockHeader) SetSenderShardID(shardID uint32) error
SetSenderShardID sets the miniBlock sender shardID
func (*MiniBlockHeader) SetTxCount ¶
func (m *MiniBlockHeader) SetTxCount(count uint32) error
SetTxCount sets the miniBlock txs count
func (*MiniBlockHeader) SetTypeInt32 ¶
func (m *MiniBlockHeader) SetTypeInt32(t int32) error
SetTypeInt32 sets the miniBlock type
func (*MiniBlockHeader) ShallowClone ¶
func (m *MiniBlockHeader) ShallowClone() data.MiniBlockHeaderHandler
ShallowClone returns the miniBlockHeader swallow clone
func (*MiniBlockHeader) Size ¶
func (m *MiniBlockHeader) Size() (n int)
func (*MiniBlockHeader) String ¶
func (this *MiniBlockHeader) String() string
func (*MiniBlockHeader) Unmarshal ¶
func (m *MiniBlockHeader) Unmarshal(dAtA []byte) error
func (*MiniBlockHeader) XXX_DiscardUnknown ¶
func (m *MiniBlockHeader) XXX_DiscardUnknown()
func (*MiniBlockHeader) XXX_Marshal ¶
func (m *MiniBlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MiniBlockHeader) XXX_Merge ¶
func (m *MiniBlockHeader) XXX_Merge(src proto.Message)
func (*MiniBlockHeader) XXX_Size ¶
func (m *MiniBlockHeader) XXX_Size() int
func (*MiniBlockHeader) XXX_Unmarshal ¶
func (m *MiniBlockHeader) XXX_Unmarshal(b []byte) error
type MiniBlockHeaderReserved ¶
type MiniBlockHeaderReserved struct { ExecutionType ProcessingType `protobuf:"varint,1,opt,name=ExecutionType,proto3,enum=proto.ProcessingType" json:"ExecutionType,omitempty"` State MiniBlockState `protobuf:"varint,2,opt,name=State,proto3,enum=proto.MiniBlockState" json:"State,omitempty"` IndexOfFirstTxProcessed int32 `protobuf:"varint,3,opt,name=IndexOfFirstTxProcessed,proto3" json:"IndexOfFirstTxProcessed,omitempty"` IndexOfLastTxProcessed int32 `protobuf:"varint,4,opt,name=IndexOfLastTxProcessed,proto3" json:"IndexOfLastTxProcessed,omitempty"` }
func (*MiniBlockHeaderReserved) Descriptor ¶
func (*MiniBlockHeaderReserved) Descriptor() ([]byte, []int)
func (*MiniBlockHeaderReserved) Equal ¶
func (this *MiniBlockHeaderReserved) Equal(that interface{}) bool
func (*MiniBlockHeaderReserved) GetExecutionType ¶
func (m *MiniBlockHeaderReserved) GetExecutionType() ProcessingType
func (*MiniBlockHeaderReserved) GetIndexOfFirstTxProcessed ¶
func (m *MiniBlockHeaderReserved) GetIndexOfFirstTxProcessed() int32
func (*MiniBlockHeaderReserved) GetIndexOfLastTxProcessed ¶
func (m *MiniBlockHeaderReserved) GetIndexOfLastTxProcessed() int32
func (*MiniBlockHeaderReserved) GetState ¶
func (m *MiniBlockHeaderReserved) GetState() MiniBlockState
func (*MiniBlockHeaderReserved) GoString ¶
func (this *MiniBlockHeaderReserved) GoString() string
func (*MiniBlockHeaderReserved) Marshal ¶
func (m *MiniBlockHeaderReserved) Marshal() (dAtA []byte, err error)
func (*MiniBlockHeaderReserved) MarshalTo ¶
func (m *MiniBlockHeaderReserved) MarshalTo(dAtA []byte) (int, error)
func (*MiniBlockHeaderReserved) MarshalToSizedBuffer ¶
func (m *MiniBlockHeaderReserved) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MiniBlockHeaderReserved) ProtoMessage ¶
func (*MiniBlockHeaderReserved) ProtoMessage()
func (*MiniBlockHeaderReserved) Reset ¶
func (m *MiniBlockHeaderReserved) Reset()
func (*MiniBlockHeaderReserved) Size ¶
func (m *MiniBlockHeaderReserved) Size() (n int)
func (*MiniBlockHeaderReserved) String ¶
func (this *MiniBlockHeaderReserved) String() string
func (*MiniBlockHeaderReserved) Unmarshal ¶
func (m *MiniBlockHeaderReserved) Unmarshal(dAtA []byte) error
func (*MiniBlockHeaderReserved) XXX_DiscardUnknown ¶
func (m *MiniBlockHeaderReserved) XXX_DiscardUnknown()
func (*MiniBlockHeaderReserved) XXX_Marshal ¶
func (m *MiniBlockHeaderReserved) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MiniBlockHeaderReserved) XXX_Merge ¶
func (m *MiniBlockHeaderReserved) XXX_Merge(src proto.Message)
func (*MiniBlockHeaderReserved) XXX_Size ¶
func (m *MiniBlockHeaderReserved) XXX_Size() int
func (*MiniBlockHeaderReserved) XXX_Unmarshal ¶
func (m *MiniBlockHeaderReserved) XXX_Unmarshal(b []byte) error
type MiniBlockReserved ¶
type MiniBlockReserved struct { ExecutionType ProcessingType `protobuf:"varint,1,opt,name=ExecutionType,proto3,enum=proto.ProcessingType" json:"ExecutionType,omitempty"` TransactionsType []byte `protobuf:"bytes,2,opt,name=TransactionsType,proto3" json:"TransactionsType,omitempty"` }
func (*MiniBlockReserved) Descriptor ¶
func (*MiniBlockReserved) Descriptor() ([]byte, []int)
func (*MiniBlockReserved) Equal ¶
func (this *MiniBlockReserved) Equal(that interface{}) bool
func (*MiniBlockReserved) GetExecutionType ¶
func (m *MiniBlockReserved) GetExecutionType() ProcessingType
func (*MiniBlockReserved) GetTransactionsType ¶
func (m *MiniBlockReserved) GetTransactionsType() []byte
func (*MiniBlockReserved) GoString ¶
func (this *MiniBlockReserved) GoString() string
func (*MiniBlockReserved) Marshal ¶
func (m *MiniBlockReserved) Marshal() (dAtA []byte, err error)
func (*MiniBlockReserved) MarshalTo ¶
func (m *MiniBlockReserved) MarshalTo(dAtA []byte) (int, error)
func (*MiniBlockReserved) MarshalToSizedBuffer ¶
func (m *MiniBlockReserved) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MiniBlockReserved) ProtoMessage ¶
func (*MiniBlockReserved) ProtoMessage()
func (*MiniBlockReserved) Reset ¶
func (m *MiniBlockReserved) Reset()
func (*MiniBlockReserved) Size ¶
func (m *MiniBlockReserved) Size() (n int)
func (*MiniBlockReserved) String ¶
func (this *MiniBlockReserved) String() string
func (*MiniBlockReserved) Unmarshal ¶
func (m *MiniBlockReserved) Unmarshal(dAtA []byte) error
func (*MiniBlockReserved) XXX_DiscardUnknown ¶
func (m *MiniBlockReserved) XXX_DiscardUnknown()
func (*MiniBlockReserved) XXX_Marshal ¶
func (m *MiniBlockReserved) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MiniBlockReserved) XXX_Merge ¶
func (m *MiniBlockReserved) XXX_Merge(src proto.Message)
func (*MiniBlockReserved) XXX_Size ¶
func (m *MiniBlockReserved) XXX_Size() int
func (*MiniBlockReserved) XXX_Unmarshal ¶
func (m *MiniBlockReserved) XXX_Unmarshal(b []byte) error
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 MiniBlockState ¶
type MiniBlockState int32
const ( Final MiniBlockState = 0 Proposed MiniBlockState = 1 PartialExecuted MiniBlockState = 2 )
func (MiniBlockState) EnumDescriptor ¶
func (MiniBlockState) EnumDescriptor() ([]byte, []int)
func (MiniBlockState) String ¶
func (x MiniBlockState) String() string
type MiniblockAndHash ¶
MiniblockAndHash holds the info related to a miniblock and its hash
type PeerAction ¶
type PeerAction int32
PeerAction type represents the possible events that a node can trigger for the metachain to notarize
const ( InvalidAction PeerAction = 0 PeerRegistration PeerAction = 1 PeerUnstaking PeerAction = 2 PeerDeregistration PeerAction = 3 PeerJailed PeerAction = 4 PeerUnJailed PeerAction = 5 PeerSlashed PeerAction = 6 PeerReStake PeerAction = 7 )
func (PeerAction) EnumDescriptor ¶
func (PeerAction) EnumDescriptor() ([]byte, []int)
func (PeerAction) String ¶
func (x PeerAction) String() string
type PeerChange ¶
type PeerChange struct { PubKey []byte `protobuf:"bytes,1,opt,name=PubKey,proto3" json:"PubKey,omitempty"` ShardIdDest uint32 `protobuf:"varint,2,opt,name=ShardIdDest,proto3" json:"ShardIdDest,omitempty"` }
PeerChange holds a change in one peer to shard assignation
func (*PeerChange) Descriptor ¶
func (*PeerChange) Descriptor() ([]byte, []int)
func (*PeerChange) Equal ¶
func (this *PeerChange) Equal(that interface{}) bool
func (*PeerChange) GetPubKey ¶
func (m *PeerChange) GetPubKey() []byte
func (*PeerChange) GetShardIdDest ¶
func (m *PeerChange) GetShardIdDest() uint32
func (*PeerChange) GoString ¶
func (this *PeerChange) GoString() string
func (*PeerChange) Marshal ¶
func (m *PeerChange) Marshal() (dAtA []byte, err error)
func (*PeerChange) MarshalToSizedBuffer ¶
func (m *PeerChange) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PeerChange) ProtoMessage ¶
func (*PeerChange) ProtoMessage()
func (*PeerChange) Reset ¶
func (m *PeerChange) Reset()
func (*PeerChange) SetPubKey ¶
func (pc *PeerChange) SetPubKey(pubKey []byte) error
SetPubKey - setter for public key
func (*PeerChange) SetShardIdDest ¶
func (pc *PeerChange) SetShardIdDest(shardID uint32) error
SetShardIdDest - setter for destination shardID
func (*PeerChange) Size ¶
func (m *PeerChange) Size() (n int)
func (*PeerChange) String ¶
func (this *PeerChange) String() string
func (*PeerChange) Unmarshal ¶
func (m *PeerChange) Unmarshal(dAtA []byte) error
func (*PeerChange) XXX_DiscardUnknown ¶
func (m *PeerChange) XXX_DiscardUnknown()
func (*PeerChange) XXX_Marshal ¶
func (m *PeerChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PeerChange) XXX_Merge ¶
func (m *PeerChange) XXX_Merge(src proto.Message)
func (*PeerChange) XXX_Size ¶
func (m *PeerChange) XXX_Size() int
func (*PeerChange) XXX_Unmarshal ¶
func (m *PeerChange) XXX_Unmarshal(b []byte) error
type PeerData ¶
type PeerData struct { Address []byte `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"` PublicKey []byte `protobuf:"bytes,2,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"` Action PeerAction `protobuf:"varint,3,opt,name=Action,proto3,enum=proto.PeerAction" json:"Action,omitempty"` TimeStamp uint64 `protobuf:"varint,4,opt,name=TimeStamp,proto3" json:"TimeStamp,omitempty"` ValueChange *math_big.Int `` /* 164-byte string literal not displayed */ }
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 (*PeerData) Descriptor ¶
func (*PeerData) GetAction ¶
func (m *PeerData) GetAction() PeerAction
func (*PeerData) GetAddress ¶
func (*PeerData) GetPublicKey ¶
func (*PeerData) GetTimeStamp ¶
func (*PeerData) GetValueChange ¶
func (*PeerData) MarshalToSizedBuffer ¶
func (*PeerData) ProtoMessage ¶
func (*PeerData) ProtoMessage()
func (*PeerData) XXX_DiscardUnknown ¶
func (m *PeerData) XXX_DiscardUnknown()
func (*PeerData) XXX_Marshal ¶
func (*PeerData) XXX_Unmarshal ¶
type ProcessingType ¶
type ProcessingType int32
const ( Normal ProcessingType = 0 Scheduled ProcessingType = 1 Processed ProcessingType = 2 )
func (ProcessingType) EnumDescriptor ¶
func (ProcessingType) EnumDescriptor() ([]byte, []int)
func (ProcessingType) String ¶
func (x ProcessingType) String() string
type ShardData ¶
type ShardData struct { HeaderHash []byte `protobuf:"bytes,2,opt,name=HeaderHash,proto3" json:"HeaderHash,omitempty"` ShardMiniBlockHeaders []MiniBlockHeader `protobuf:"bytes,3,rep,name=ShardMiniBlockHeaders,proto3" json:"ShardMiniBlockHeaders"` PrevRandSeed []byte `protobuf:"bytes,4,opt,name=PrevRandSeed,proto3" json:"PrevRandSeed,omitempty"` PubKeysBitmap []byte `protobuf:"bytes,5,opt,name=PubKeysBitmap,proto3" json:"PubKeysBitmap,omitempty"` Signature []byte `protobuf:"bytes,6,opt,name=Signature,proto3" json:"Signature,omitempty"` Round uint64 `protobuf:"varint,8,opt,name=Round,proto3" json:"Round,omitempty"` PrevHash []byte `protobuf:"bytes,9,opt,name=PrevHash,proto3" json:"PrevHash,omitempty"` Nonce uint64 `protobuf:"varint,10,opt,name=Nonce,proto3" json:"Nonce,omitempty"` AccumulatedFees *math_big.Int `` /* 173-byte string literal not displayed */ DeveloperFees *math_big.Int `` /* 169-byte string literal not displayed */ NumPendingMiniBlocks uint32 `protobuf:"varint,11,opt,name=NumPendingMiniBlocks,proto3" json:"NumPendingMiniBlocks,omitempty"` LastIncludedMetaNonce uint64 `protobuf:"varint,13,opt,name=LastIncludedMetaNonce,proto3" json:"LastIncludedMetaNonce,omitempty"` ShardID uint32 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"ShardID,omitempty"` TxCount uint32 `protobuf:"varint,7,opt,name=TxCount,proto3" json:"TxCount,omitempty"` }
ShardData holds the block information sent by the shards to the metachain
func (*ShardData) Descriptor ¶
func (*ShardData) GetAccumulatedFees ¶
func (*ShardData) GetDeveloperFees ¶
func (*ShardData) GetHeaderHash ¶
func (*ShardData) GetLastIncludedMetaNonce ¶
func (*ShardData) GetNumPendingMiniBlocks ¶
func (*ShardData) GetPrevHash ¶
func (*ShardData) GetPrevRandSeed ¶
func (*ShardData) GetPubKeysBitmap ¶
func (*ShardData) GetShardID ¶
func (*ShardData) GetShardMiniBlockHeaderHandlers ¶
func (sd *ShardData) GetShardMiniBlockHeaderHandlers() []data.MiniBlockHeaderHandler
GetShardMiniBlockHeaderHandlers returns the shard miniBlockHeaders as MiniBlockHeaderHandlers
func (*ShardData) GetShardMiniBlockHeaders ¶
func (m *ShardData) GetShardMiniBlockHeaders() []MiniBlockHeader
func (*ShardData) GetSignature ¶
func (*ShardData) GetTxCount ¶
func (*ShardData) MarshalToSizedBuffer ¶
func (*ShardData) ProtoMessage ¶
func (*ShardData) ProtoMessage()
func (*ShardData) SetAccumulatedFees ¶
SetAccumulatedFees sets the accumulatedFees
func (*ShardData) SetDeveloperFees ¶
SetDeveloperFees sets the developerFees
func (*ShardData) SetHeaderHash ¶
SetHeaderHash sets the header hash
func (*ShardData) SetLastIncludedMetaNonce ¶
SetLastIncludedMetaNonce sets the last included metaBlock nonce
func (*ShardData) SetNumPendingMiniBlocks ¶
SetNumPendingMiniBlocks sets the number of pending miniBlocks
func (*ShardData) SetPrevHash ¶
SetPrevHash sets the prevHash
func (*ShardData) SetPrevRandSeed ¶
SetPrevRandSeed sets the prevRandSeed
func (*ShardData) SetPubKeysBitmap ¶
SetPubKeysBitmap sets the pubKeysBitmap
func (*ShardData) SetShardID ¶
SetShardID sets the shardID
func (*ShardData) SetShardMiniBlockHeaderHandlers ¶
func (sd *ShardData) SetShardMiniBlockHeaderHandlers(mbHeaderHandlers []data.MiniBlockHeaderHandler) error
SetShardMiniBlockHeaderHandlers sets the miniBlockHeaders from a list of MiniBlockHeaderHandler
func (*ShardData) SetSignature ¶
SetSignature sets the signature
func (*ShardData) SetTxCount ¶
SetTxCount sets the transaction count
func (*ShardData) ShallowClone ¶
func (sd *ShardData) ShallowClone() data.ShardDataHandler
ShallowClone creates and returns a shallow clone of shardData
func (*ShardData) XXX_DiscardUnknown ¶
func (m *ShardData) XXX_DiscardUnknown()
func (*ShardData) XXX_Marshal ¶
func (*ShardData) XXX_Unmarshal ¶
type ShardTriggerRegistry ¶
type ShardTriggerRegistry struct { IsEpochStart bool `protobuf:"varint,1,opt,name=IsEpochStart,proto3" json:"IsEpochStart,omitempty"` NewEpochHeaderReceived bool `protobuf:"varint,2,opt,name=NewEpochHeaderReceived,proto3" json:"NewEpochHeaderReceived,omitempty"` Epoch uint32 `protobuf:"varint,3,opt,name=Epoch,proto3" json:"Epoch,omitempty"` MetaEpoch uint32 `protobuf:"varint,4,opt,name=MetaEpoch,proto3" json:"MetaEpoch,omitempty"` CurrentRoundIndex int64 `protobuf:"varint,5,opt,name=CurrentRoundIndex,proto3" json:"CurrentRoundIndex,omitempty"` EpochStartRound uint64 `protobuf:"varint,6,opt,name=EpochStartRound,proto3" json:"EpochStartRound,omitempty"` EpochFinalityAttestingRound uint64 `protobuf:"varint,7,opt,name=EpochFinalityAttestingRound,proto3" json:"EpochFinalityAttestingRound,omitempty"` EpochMetaBlockHash []byte `protobuf:"bytes,8,opt,name=EpochMetaBlockHash,proto3" json:"EpochMetaBlockHash,omitempty"` EpochStartShardHeader *Header `protobuf:"bytes,9,opt,name=EpochStartShardHeader,proto3" json:"EpochStartShardHeader,omitempty"` }
func (*ShardTriggerRegistry) Descriptor ¶
func (*ShardTriggerRegistry) Descriptor() ([]byte, []int)
func (*ShardTriggerRegistry) Equal ¶
func (this *ShardTriggerRegistry) Equal(that interface{}) bool
func (*ShardTriggerRegistry) GetCurrentRoundIndex ¶
func (m *ShardTriggerRegistry) GetCurrentRoundIndex() int64
func (*ShardTriggerRegistry) GetEpoch ¶
func (m *ShardTriggerRegistry) GetEpoch() uint32
func (*ShardTriggerRegistry) GetEpochFinalityAttestingRound ¶
func (m *ShardTriggerRegistry) GetEpochFinalityAttestingRound() uint64
func (*ShardTriggerRegistry) GetEpochMetaBlockHash ¶
func (m *ShardTriggerRegistry) GetEpochMetaBlockHash() []byte
func (*ShardTriggerRegistry) GetEpochStartHeaderHandler ¶
func (str *ShardTriggerRegistry) GetEpochStartHeaderHandler() data.HeaderHandler
GetEpochStartHeaderHandler returns the epoch start headerHandler
func (*ShardTriggerRegistry) GetEpochStartRound ¶
func (m *ShardTriggerRegistry) GetEpochStartRound() uint64
func (*ShardTriggerRegistry) GetEpochStartShardHeader ¶
func (m *ShardTriggerRegistry) GetEpochStartShardHeader() *Header
func (*ShardTriggerRegistry) GetIsEpochStart ¶
func (m *ShardTriggerRegistry) GetIsEpochStart() bool
func (*ShardTriggerRegistry) GetMetaEpoch ¶
func (m *ShardTriggerRegistry) GetMetaEpoch() uint32
func (*ShardTriggerRegistry) GetNewEpochHeaderReceived ¶
func (m *ShardTriggerRegistry) GetNewEpochHeaderReceived() bool
func (*ShardTriggerRegistry) GoString ¶
func (this *ShardTriggerRegistry) GoString() string
func (*ShardTriggerRegistry) Marshal ¶
func (m *ShardTriggerRegistry) Marshal() (dAtA []byte, err error)
func (*ShardTriggerRegistry) MarshalTo ¶
func (m *ShardTriggerRegistry) MarshalTo(dAtA []byte) (int, error)
func (*ShardTriggerRegistry) MarshalToSizedBuffer ¶
func (m *ShardTriggerRegistry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ShardTriggerRegistry) ProtoMessage ¶
func (*ShardTriggerRegistry) ProtoMessage()
func (*ShardTriggerRegistry) Reset ¶
func (m *ShardTriggerRegistry) Reset()
func (*ShardTriggerRegistry) SetCurrentRoundIndex ¶
func (str *ShardTriggerRegistry) SetCurrentRoundIndex(roundIndex int64) error
SetCurrentRoundIndex sets the current round index
func (*ShardTriggerRegistry) SetEpoch ¶
func (str *ShardTriggerRegistry) SetEpoch(epoch uint32) error
SetEpoch sets the epoch
func (*ShardTriggerRegistry) SetEpochFinalityAttestingRound ¶
func (str *ShardTriggerRegistry) SetEpochFinalityAttestingRound(finalityAttestingRound uint64) error
SetEpochFinalityAttestingRound sets the epoch finality attesting round
func (*ShardTriggerRegistry) SetEpochMetaBlockHash ¶
func (str *ShardTriggerRegistry) SetEpochMetaBlockHash(epochMetaBlockHash []byte) error
SetEpochMetaBlockHash sets the epoch metaChain block hash
func (*ShardTriggerRegistry) SetEpochStartHeaderHandler ¶
func (str *ShardTriggerRegistry) SetEpochStartHeaderHandler(epochStartHeaderHandler data.HeaderHandler) error
SetEpochStartHeaderHandler sets the epoch start header
func (*ShardTriggerRegistry) SetEpochStartRound ¶
func (str *ShardTriggerRegistry) SetEpochStartRound(startRound uint64) error
SetEpochStartRound sets the epoch start round
func (*ShardTriggerRegistry) SetIsEpochStart ¶
func (str *ShardTriggerRegistry) SetIsEpochStart(isEpochStart bool) error
SetIsEpochStart sets the isEpochStart flag
func (*ShardTriggerRegistry) SetMetaEpoch ¶
func (str *ShardTriggerRegistry) SetMetaEpoch(metaEpoch uint32) error
SetMetaEpoch Sets the metaChain epoch
func (*ShardTriggerRegistry) SetNewEpochHeaderReceived ¶
func (str *ShardTriggerRegistry) SetNewEpochHeaderReceived(newEpochHeaderReceived bool) error
SetNewEpochHeaderReceived sets the newEpochHeaderReceived flag
func (*ShardTriggerRegistry) Size ¶
func (m *ShardTriggerRegistry) Size() (n int)
func (*ShardTriggerRegistry) String ¶
func (this *ShardTriggerRegistry) String() string
func (*ShardTriggerRegistry) Unmarshal ¶
func (m *ShardTriggerRegistry) Unmarshal(dAtA []byte) error
func (*ShardTriggerRegistry) XXX_DiscardUnknown ¶
func (m *ShardTriggerRegistry) XXX_DiscardUnknown()
func (*ShardTriggerRegistry) XXX_Marshal ¶
func (m *ShardTriggerRegistry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ShardTriggerRegistry) XXX_Merge ¶
func (m *ShardTriggerRegistry) XXX_Merge(src proto.Message)
func (*ShardTriggerRegistry) XXX_Size ¶
func (m *ShardTriggerRegistry) XXX_Size() int
func (*ShardTriggerRegistry) XXX_Unmarshal ¶
func (m *ShardTriggerRegistry) XXX_Unmarshal(b []byte) error
type ShardTriggerRegistryV2 ¶
type ShardTriggerRegistryV2 struct { EpochStartShardHeader *HeaderV2 `protobuf:"bytes,1,opt,name=EpochStartShardHeader,proto3" json:"EpochStartShardHeader,omitempty"` IsEpochStart bool `protobuf:"varint,2,opt,name=IsEpochStart,proto3" json:"IsEpochStart,omitempty"` NewEpochHeaderReceived bool `protobuf:"varint,3,opt,name=NewEpochHeaderReceived,proto3" json:"NewEpochHeaderReceived,omitempty"` Epoch uint32 `protobuf:"varint,4,opt,name=Epoch,proto3" json:"Epoch,omitempty"` MetaEpoch uint32 `protobuf:"varint,5,opt,name=MetaEpoch,proto3" json:"MetaEpoch,omitempty"` CurrentRoundIndex int64 `protobuf:"varint,6,opt,name=CurrentRoundIndex,proto3" json:"CurrentRoundIndex,omitempty"` EpochStartRound uint64 `protobuf:"varint,7,opt,name=EpochStartRound,proto3" json:"EpochStartRound,omitempty"` EpochFinalityAttestingRound uint64 `protobuf:"varint,8,opt,name=EpochFinalityAttestingRound,proto3" json:"EpochFinalityAttestingRound,omitempty"` EpochMetaBlockHash []byte `protobuf:"bytes,9,opt,name=EpochMetaBlockHash,proto3" json:"EpochMetaBlockHash,omitempty"` }
func (*ShardTriggerRegistryV2) Descriptor ¶
func (*ShardTriggerRegistryV2) Descriptor() ([]byte, []int)
func (*ShardTriggerRegistryV2) Equal ¶
func (this *ShardTriggerRegistryV2) Equal(that interface{}) bool
func (*ShardTriggerRegistryV2) GetCurrentRoundIndex ¶
func (m *ShardTriggerRegistryV2) GetCurrentRoundIndex() int64
func (*ShardTriggerRegistryV2) GetEpoch ¶
func (m *ShardTriggerRegistryV2) GetEpoch() uint32
func (*ShardTriggerRegistryV2) GetEpochFinalityAttestingRound ¶
func (m *ShardTriggerRegistryV2) GetEpochFinalityAttestingRound() uint64
func (*ShardTriggerRegistryV2) GetEpochMetaBlockHash ¶
func (m *ShardTriggerRegistryV2) GetEpochMetaBlockHash() []byte
func (*ShardTriggerRegistryV2) GetEpochStartHeaderHandler ¶
func (strV2 *ShardTriggerRegistryV2) GetEpochStartHeaderHandler() data.HeaderHandler
GetEpochStartHeaderHandler returns the epoch start headerHandler
func (*ShardTriggerRegistryV2) GetEpochStartRound ¶
func (m *ShardTriggerRegistryV2) GetEpochStartRound() uint64
func (*ShardTriggerRegistryV2) GetEpochStartShardHeader ¶
func (m *ShardTriggerRegistryV2) GetEpochStartShardHeader() *HeaderV2
func (*ShardTriggerRegistryV2) GetIsEpochStart ¶
func (m *ShardTriggerRegistryV2) GetIsEpochStart() bool
func (*ShardTriggerRegistryV2) GetMetaEpoch ¶
func (m *ShardTriggerRegistryV2) GetMetaEpoch() uint32
func (*ShardTriggerRegistryV2) GetNewEpochHeaderReceived ¶
func (m *ShardTriggerRegistryV2) GetNewEpochHeaderReceived() bool
func (*ShardTriggerRegistryV2) GoString ¶
func (this *ShardTriggerRegistryV2) GoString() string
func (*ShardTriggerRegistryV2) Marshal ¶
func (m *ShardTriggerRegistryV2) Marshal() (dAtA []byte, err error)
func (*ShardTriggerRegistryV2) MarshalTo ¶
func (m *ShardTriggerRegistryV2) MarshalTo(dAtA []byte) (int, error)
func (*ShardTriggerRegistryV2) MarshalToSizedBuffer ¶
func (m *ShardTriggerRegistryV2) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ShardTriggerRegistryV2) ProtoMessage ¶
func (*ShardTriggerRegistryV2) ProtoMessage()
func (*ShardTriggerRegistryV2) Reset ¶
func (m *ShardTriggerRegistryV2) Reset()
func (*ShardTriggerRegistryV2) SetCurrentRoundIndex ¶
func (strV2 *ShardTriggerRegistryV2) SetCurrentRoundIndex(roundIndex int64) error
SetCurrentRoundIndex sets the current round index
func (*ShardTriggerRegistryV2) SetEpoch ¶
func (strV2 *ShardTriggerRegistryV2) SetEpoch(epoch uint32) error
SetEpoch sets the epoch
func (*ShardTriggerRegistryV2) SetEpochFinalityAttestingRound ¶
func (strV2 *ShardTriggerRegistryV2) SetEpochFinalityAttestingRound(finalityAttestingRound uint64) error
SetEpochFinalityAttestingRound sets the epoch finality attesting round
func (*ShardTriggerRegistryV2) SetEpochMetaBlockHash ¶
func (strV2 *ShardTriggerRegistryV2) SetEpochMetaBlockHash(epochMetaBlockHash []byte) error
SetEpochMetaBlockHash sets the epoch metaChain block hash
func (*ShardTriggerRegistryV2) SetEpochStartHeaderHandler ¶
func (strV2 *ShardTriggerRegistryV2) SetEpochStartHeaderHandler(epochStartHeaderHandler data.HeaderHandler) error
SetEpochStartHeaderHandler sets the epoch start header
func (*ShardTriggerRegistryV2) SetEpochStartRound ¶
func (strV2 *ShardTriggerRegistryV2) SetEpochStartRound(startRound uint64) error
SetEpochStartRound sets the epoch start round
func (*ShardTriggerRegistryV2) SetIsEpochStart ¶
func (strV2 *ShardTriggerRegistryV2) SetIsEpochStart(isEpochStart bool) error
SetIsEpochStart sets the isEpochStart flag
func (*ShardTriggerRegistryV2) SetMetaEpoch ¶
func (strV2 *ShardTriggerRegistryV2) SetMetaEpoch(metaEpoch uint32) error
SetMetaEpoch sets the metaChain epoch
func (*ShardTriggerRegistryV2) SetNewEpochHeaderReceived ¶
func (strV2 *ShardTriggerRegistryV2) SetNewEpochHeaderReceived(newEpochHeaderReceived bool) error
SetNewEpochHeaderReceived sets the neeEpochHeaderReceived flag
func (*ShardTriggerRegistryV2) Size ¶
func (m *ShardTriggerRegistryV2) Size() (n int)
func (*ShardTriggerRegistryV2) String ¶
func (this *ShardTriggerRegistryV2) String() string
func (*ShardTriggerRegistryV2) Unmarshal ¶
func (m *ShardTriggerRegistryV2) Unmarshal(dAtA []byte) error
func (*ShardTriggerRegistryV2) XXX_DiscardUnknown ¶
func (m *ShardTriggerRegistryV2) XXX_DiscardUnknown()
func (*ShardTriggerRegistryV2) XXX_Marshal ¶
func (m *ShardTriggerRegistryV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ShardTriggerRegistryV2) XXX_Merge ¶
func (m *ShardTriggerRegistryV2) XXX_Merge(src proto.Message)
func (*ShardTriggerRegistryV2) XXX_Size ¶
func (m *ShardTriggerRegistryV2) XXX_Size() int
func (*ShardTriggerRegistryV2) XXX_Unmarshal ¶
func (m *ShardTriggerRegistryV2) XXX_Unmarshal(b []byte) error