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 (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 (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 (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 (m *EpochStartShardData) GetPendingMiniBlockHeaders() []MiniBlockHeader
- func (m *EpochStartShardData) GetRootHash() []byte
- func (m *EpochStartShardData) GetRound() uint64
- 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 (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 (h *Header) Clone() data.HeaderHandler
- func (*Header) Descriptor() ([]byte, []int)
- func (this *Header) Equal(that interface{}) bool
- func (m *Header) GetAccumulatedFees() *math_big.Int
- func (m *Header) GetBlockBodyType() Type
- 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 (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) 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)
- func (h *Header) SetChainID(chainID []byte)
- func (h *Header) SetDeveloperFees(value *big.Int)
- func (h *Header) SetEpoch(e uint32)
- func (h *Header) SetLeaderSignature(sg []byte)
- func (h *Header) SetNonce(n uint64)
- func (h *Header) SetPrevHash(pvHash []byte)
- func (h *Header) SetPrevRandSeed(pvRandSeed []byte)
- func (h *Header) SetPubKeysBitmap(pkbm []byte)
- func (h *Header) SetRandSeed(randSeed []byte)
- func (h *Header) SetRootHash(rHash []byte)
- func (h *Header) SetRound(r uint64)
- func (h *Header) SetShardID(shId uint32)
- func (h *Header) SetSignature(sg []byte)
- func (h *Header) SetSoftwareVersion(version []byte)
- func (h *Header) SetTimeStamp(ts uint64)
- func (h *Header) SetTxCount(txCount uint32)
- func (h *Header) SetValidatorStatsRootHash(_ []byte)
- func (m *Header) Size() (n int)
- func (this *Header) String() string
- func (m *Header) Unmarshal(dAtA []byte) 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 MetaBlock
- func (m *MetaBlock) Clone() data.HeaderHandler
- 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) 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) GetEpochStartMetaHash() []byte
- func (m *MetaBlock) GetLeaderSignature() []byte
- 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) 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) 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)
- func (m *MetaBlock) SetChainID(chainID []byte)
- func (m *MetaBlock) SetDeveloperFees(value *big.Int)
- func (m *MetaBlock) SetEpoch(e uint32)
- func (m *MetaBlock) SetLeaderSignature(sg []byte)
- func (m *MetaBlock) SetNonce(n uint64)
- func (m *MetaBlock) SetPrevHash(pvHash []byte)
- func (m *MetaBlock) SetPrevRandSeed(pvRandSeed []byte)
- func (m *MetaBlock) SetPubKeysBitmap(pkbm []byte)
- func (m *MetaBlock) SetRandSeed(randSeed []byte)
- func (m *MetaBlock) SetRootHash(rHash []byte)
- func (m *MetaBlock) SetRound(r uint64)
- func (m *MetaBlock) SetShardID(_ uint32)
- func (m *MetaBlock) SetSignature(sg []byte)
- func (m *MetaBlock) SetSoftwareVersion(version []byte)
- func (m *MetaBlock) SetTimeStamp(ts uint64)
- func (m *MetaBlock) SetTxCount(txCount uint32)
- func (m *MetaBlock) SetValidatorStatsRootHash(rHash []byte)
- func (m *MetaBlock) Size() (n int)
- func (this *MetaBlock) String() string
- func (m *MetaBlock) Unmarshal(dAtA []byte) 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 MiniBlock
- func (mb *MiniBlock) Clone() *MiniBlock
- func (*MiniBlock) Descriptor() ([]byte, []int)
- func (this *MiniBlock) Equal(that interface{}) bool
- func (m *MiniBlock) GetReceiverShardID() uint32
- func (m *MiniBlock) GetReserved() []byte
- func (m *MiniBlock) GetSenderShardID() uint32
- func (m *MiniBlock) GetTxHashes() [][]byte
- func (m *MiniBlock) GetType() Type
- func (this *MiniBlock) GoString() string
- 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 (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) GetHash() []byte
- 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 (this *MiniBlockHeader) GoString() string
- 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) 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 MiniBlockSlice
- 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 (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 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 (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 (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 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 ( ErrInvalidLengthMetaBlock = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMetaBlock = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMetaBlock = fmt.Errorf("proto: unexpected end of group") )
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 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 `` /* 154-byte string literal not displayed */ TotalToDistribute *math_big.Int `` /* 166-byte string literal not displayed */ TotalNewlyMinted *math_big.Int `` /* 164-byte string literal not displayed */ RewardsPerBlock *math_big.Int `` /* 162-byte string literal not displayed */ RewardsForProtocolSustainability *math_big.Int `` /* 196-byte string literal not displayed */ NodePrice *math_big.Int `` /* 150-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 ¶ added in v1.0.102
func (*Economics) GetPrevEpochStartRound ¶
func (*Economics) GetRewardsForProtocolSustainability ¶ added in v1.0.147
func (*Economics) GetRewardsPerBlock ¶ added in v1.0.128
func (*Economics) GetTotalNewlyMinted ¶
func (*Economics) GetTotalSupply ¶
func (*Economics) GetTotalToDistribute ¶
func (*Economics) MarshalToSizedBuffer ¶
func (*Economics) ProtoMessage ¶
func (*Economics) ProtoMessage()
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) 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) 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"` 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 ¶ added in v1.0.109
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) GetPendingMiniBlockHeaders ¶
func (m *EpochStartShardData) GetPendingMiniBlockHeaders() []MiniBlockHeader
func (*EpochStartShardData) GetRootHash ¶
func (m *EpochStartShardData) GetRootHash() []byte
func (*EpochStartShardData) GetRound ¶
func (m *EpochStartShardData) GetRound() uint64
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) 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 `` /* 163-byte string literal not displayed */ DeveloperFees *math_big.Int `` /* 159-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) Clone ¶
func (h *Header) Clone() data.HeaderHandler
Clone returns a clone of the object
func (*Header) Descriptor ¶
func (*Header) GetAccumulatedFees ¶
func (*Header) GetBlockBodyType ¶
func (*Header) GetChainID ¶
func (*Header) GetDeveloperFees ¶ added in v1.0.114
func (*Header) GetEpochStartMetaHash ¶
func (*Header) GetLeaderSignature ¶
func (*Header) GetMetaBlockHashes ¶
func (*Header) GetMiniBlockHeaders ¶
func (m *Header) GetMiniBlockHeaders() []MiniBlockHeader
func (*Header) GetMiniBlockHeadersHashes ¶ added in v1.1.1
GetMiniBlockHeadersHashes gets the miniblock hashes
func (*Header) GetMiniBlockHeadersWithDst ¶
GetMiniBlockHeadersWithDst as a map of hashes and sender IDs
func (*Header) GetOrderedCrossMiniblocksWithDst ¶ added in v1.1.1
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 ¶ added in v1.0.149
func (*Header) GetRootHash ¶
func (*Header) GetShardID ¶
func (*Header) GetSignature ¶
func (*Header) GetSoftwareVersion ¶ added in v1.0.115
func (*Header) GetTimeStamp ¶
func (*Header) GetTxCount ¶
func (*Header) GetValidatorStatsRootHash ¶
GetValidatorStatsRootHash set's the root hash for the validator statistics trie
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) SetChainID ¶
SetChainID sets the chain ID on which this block is valid on
func (*Header) SetDeveloperFees ¶ added in v1.0.114
SetDeveloperFees sets the developer fees in the header
func (*Header) SetLeaderSignature ¶
SetLeaderSignature will set the leader's signature
func (*Header) SetPrevRandSeed ¶
SetPrevRandSeed sets previous random seed
func (*Header) SetPubKeysBitmap ¶
SetPubKeysBitmap sets publick key bitmap
func (*Header) SetRandSeed ¶
SetRandSeed sets previous random seed
func (*Header) SetShardID ¶
SetShardID sets header shard ID
func (*Header) SetSignature ¶
SetSignature sets header signature
func (*Header) SetSoftwareVersion ¶ added in v1.0.117
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 set's the root hash for the validator statistics trie
func (*Header) XXX_DiscardUnknown ¶
func (m *Header) XXX_DiscardUnknown()
func (*Header) XXX_Marshal ¶
func (*Header) 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 `` /* 163-byte string literal not displayed */ AccumulatedFeesInEpoch *math_big.Int `` /* 177-byte string literal not displayed */ DeveloperFees *math_big.Int `` /* 159-byte string literal not displayed */ DevFeesInEpoch *math_big.Int `` /* 161-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) Clone ¶
func (m *MetaBlock) Clone() data.HeaderHandler
Clone will return a clone of the object
func (*MetaBlock) Descriptor ¶
func (*MetaBlock) GetAccumulatedFees ¶
func (*MetaBlock) GetAccumulatedFeesInEpoch ¶
func (*MetaBlock) GetChainID ¶
func (*MetaBlock) GetDevFeesInEpoch ¶ added in v1.0.114
func (*MetaBlock) GetDeveloperFees ¶ added in v1.0.114
func (*MetaBlock) GetEpochStart ¶
func (m *MetaBlock) GetEpochStart() EpochStart
func (*MetaBlock) GetEpochStartMetaHash ¶
GetEpochStartMetaHash returns the hash of the epoch start meta block
func (*MetaBlock) GetLeaderSignature ¶
func (*MetaBlock) GetMiniBlockHeaders ¶
func (m *MetaBlock) GetMiniBlockHeaders() []MiniBlockHeader
func (*MetaBlock) GetMiniBlockHeadersHashes ¶ added in v1.1.1
GetMiniBlockHeadersHashes gets the miniblock hashes
func (*MetaBlock) GetMiniBlockHeadersWithDst ¶
GetMiniBlockHeadersWithDst as a map of hashes and sender IDs
func (*MetaBlock) GetOrderedCrossMiniblocksWithDst ¶ added in v1.1.1
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 ¶ added in v1.0.149
func (*MetaBlock) GetRootHash ¶
func (*MetaBlock) GetShardID ¶
GetShardID returns the metachain shard id
func (*MetaBlock) GetShardInfo ¶
func (*MetaBlock) GetSignature ¶
func (*MetaBlock) GetSoftwareVersion ¶ added in v1.0.115
func (*MetaBlock) GetTimeStamp ¶
func (*MetaBlock) GetTxCount ¶
func (*MetaBlock) GetValidatorStatsRootHash ¶
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) SetChainID ¶
SetChainID sets the chain ID on which this block is valid on
func (*MetaBlock) SetDeveloperFees ¶ added in v1.0.114
SetDeveloperFees sets the developer fees in the header
func (*MetaBlock) SetLeaderSignature ¶
SetLeaderSignature will set the leader's signature
func (*MetaBlock) SetPrevHash ¶
SetPrevHash sets prev hash
func (*MetaBlock) SetPrevRandSeed ¶
SetPrevRandSeed sets the previous randomness seed
func (*MetaBlock) SetPubKeysBitmap ¶
SetPubKeysBitmap sets publick key bitmap
func (*MetaBlock) SetRandSeed ¶
SetRandSeed sets the current random seed
func (*MetaBlock) SetRootHash ¶
SetRootHash sets root hash
func (*MetaBlock) SetShardID ¶
SetShardID sets header shard ID
func (*MetaBlock) SetSignature ¶
SetSignature set header signature
func (*MetaBlock) SetSoftwareVersion ¶ added in v1.0.117
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 set's the root hash for the validator statistics trie
func (*MetaBlock) XXX_DiscardUnknown ¶
func (m *MetaBlock) XXX_DiscardUnknown()
func (*MetaBlock) XXX_Marshal ¶
func (*MetaBlock) XXX_Unmarshal ¶
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) GetReceiverShardID ¶
func (*MiniBlock) GetReserved ¶ added in v1.0.149
func (*MiniBlock) GetSenderShardID ¶
func (*MiniBlock) GetTxHashes ¶
func (*MiniBlock) MarshalToSizedBuffer ¶
func (*MiniBlock) ProtoMessage ¶
func (*MiniBlock) ProtoMessage()
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) GetHash ¶
func (m *MiniBlockHeader) GetHash() []byte
func (*MiniBlockHeader) GetReceiverShardID ¶
func (m *MiniBlockHeader) GetReceiverShardID() uint32
func (*MiniBlockHeader) GetReserved ¶ added in v1.0.149
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) GoString ¶
func (this *MiniBlockHeader) GoString() string
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) 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 MiniBlockSlice ¶
type MiniBlockSlice []*MiniBlock
MiniBlockSlice should be used when referring to subset of mini blocks that is not
necessarily representing a full block body
type PeerAction ¶
type PeerAction 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) 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 `` /* 154-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 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 `` /* 163-byte string literal not displayed */ DeveloperFees *math_big.Int `` /* 159-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 ¶ added in v1.0.114
func (*ShardData) GetHeaderHash ¶
func (*ShardData) GetLastIncludedMetaNonce ¶ added in v1.0.103
func (*ShardData) GetNumPendingMiniBlocks ¶
func (*ShardData) GetPrevHash ¶
func (*ShardData) GetPrevRandSeed ¶
func (*ShardData) GetPubKeysBitmap ¶
func (*ShardData) GetShardID ¶
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) XXX_DiscardUnknown ¶
func (m *ShardData) XXX_DiscardUnknown()