Documentation ¶
Index ¶
- type ArgInterceptedBlockHeader
- type ArgInterceptedMiniblock
- type InterceptedHeader
- func (inHdr *InterceptedHeader) CheckValidity() error
- func (inHdr *InterceptedHeader) Hash() []byte
- func (inHdr *InterceptedHeader) HeaderHandler() data.HeaderHandler
- func (inHdr *InterceptedHeader) Identifiers() [][]byte
- func (inHdr *InterceptedHeader) IsForCurrentShard() bool
- func (inHdr *InterceptedHeader) IsInterfaceNil() bool
- func (inHdr *InterceptedHeader) String() string
- func (inHdr *InterceptedHeader) Type() string
- type InterceptedMetaHeader
- func (imh *InterceptedMetaHeader) CheckValidity() error
- func (imh *InterceptedMetaHeader) Hash() []byte
- func (imh *InterceptedMetaHeader) HeaderHandler() data.HeaderHandler
- func (imh *InterceptedMetaHeader) Identifiers() [][]byte
- func (imh *InterceptedMetaHeader) IsForCurrentShard() bool
- func (imh *InterceptedMetaHeader) IsInterfaceNil() bool
- func (imh *InterceptedMetaHeader) String() string
- func (imh *InterceptedMetaHeader) Type() string
- type InterceptedMiniblock
- func (inMb *InterceptedMiniblock) CheckValidity() error
- func (inMb *InterceptedMiniblock) Hash() []byte
- func (inMb *InterceptedMiniblock) Identifiers() [][]byte
- func (inMb *InterceptedMiniblock) IsForCurrentShard() bool
- func (inMb *InterceptedMiniblock) IsInterfaceNil() bool
- func (inMb *InterceptedMiniblock) Miniblock() *block.MiniBlock
- func (inMb *InterceptedMiniblock) String() string
- func (inMb *InterceptedMiniblock) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgInterceptedBlockHeader ¶
type ArgInterceptedBlockHeader struct { HdrBuff []byte Marshalizer marshal.Marshalizer Hasher hashing.Hasher ShardCoordinator sharding.Coordinator HeaderSigVerifier process.InterceptedHeaderSigVerifier HeaderIntegrityVerifier process.HeaderIntegrityVerifier ValidityAttester process.ValidityAttester EpochStartTrigger process.EpochStartTriggerHandler }
ArgInterceptedBlockHeader is the argument for the intercepted header
type ArgInterceptedMiniblock ¶ added in v1.0.104
type ArgInterceptedMiniblock struct { MiniblockBuff []byte Marshalizer marshal.Marshalizer Hasher hashing.Hasher ShardCoordinator sharding.Coordinator }
ArgInterceptedMiniblock is the argument for the intercepted miniblock
type InterceptedHeader ¶
type InterceptedHeader struct {
// contains filtered or unexported fields
}
InterceptedHeader represents the wrapper over HeaderWrapper struct. It implements Newer and Hashed interfaces
func NewInterceptedHeader ¶
func NewInterceptedHeader(arg *ArgInterceptedBlockHeader) (*InterceptedHeader, error)
NewInterceptedHeader creates a new instance of InterceptedHeader struct
func (*InterceptedHeader) CheckValidity ¶
func (inHdr *InterceptedHeader) CheckValidity() error
CheckValidity checks if the received header is valid (not nil fields, valid sig and so on)
func (*InterceptedHeader) Hash ¶
func (inHdr *InterceptedHeader) Hash() []byte
Hash gets the hash of this header
func (*InterceptedHeader) HeaderHandler ¶
func (inHdr *InterceptedHeader) HeaderHandler() data.HeaderHandler
HeaderHandler returns the HeaderHandler pointer that holds the data
func (*InterceptedHeader) Identifiers ¶ added in v1.0.110
func (inHdr *InterceptedHeader) Identifiers() [][]byte
Identifiers returns the identifiers used in requests
func (*InterceptedHeader) IsForCurrentShard ¶
func (inHdr *InterceptedHeader) IsForCurrentShard() bool
IsForCurrentShard returns true if this header is meant to be processed by the node from this shard
func (*InterceptedHeader) IsInterfaceNil ¶
func (inHdr *InterceptedHeader) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*InterceptedHeader) String ¶ added in v0.0.5
func (inHdr *InterceptedHeader) String() string
String returns the header's most important fields as string
func (*InterceptedHeader) Type ¶
func (inHdr *InterceptedHeader) Type() string
Type returns the type of this intercepted data
type InterceptedMetaHeader ¶
type InterceptedMetaHeader struct {
// contains filtered or unexported fields
}
InterceptedMetaHeader represents the wrapper over the meta block header struct
func NewInterceptedMetaHeader ¶
func NewInterceptedMetaHeader(arg *ArgInterceptedBlockHeader) (*InterceptedMetaHeader, error)
NewInterceptedMetaHeader creates a new instance of InterceptedMetaHeader struct
func (*InterceptedMetaHeader) CheckValidity ¶
func (imh *InterceptedMetaHeader) CheckValidity() error
CheckValidity checks if the received meta header is valid (not nil fields, valid sig and so on)
func (*InterceptedMetaHeader) Hash ¶
func (imh *InterceptedMetaHeader) Hash() []byte
Hash gets the hash of this header
func (*InterceptedMetaHeader) HeaderHandler ¶
func (imh *InterceptedMetaHeader) HeaderHandler() data.HeaderHandler
HeaderHandler returns the MetaBlock pointer that holds the data
func (*InterceptedMetaHeader) Identifiers ¶ added in v1.0.110
func (imh *InterceptedMetaHeader) Identifiers() [][]byte
Identifiers returns the identifiers used in requests
func (*InterceptedMetaHeader) IsForCurrentShard ¶
func (imh *InterceptedMetaHeader) IsForCurrentShard() bool
IsForCurrentShard always returns true
func (*InterceptedMetaHeader) IsInterfaceNil ¶
func (imh *InterceptedMetaHeader) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*InterceptedMetaHeader) String ¶ added in v0.0.5
func (imh *InterceptedMetaHeader) String() string
String returns the meta header's most important fields as string
func (*InterceptedMetaHeader) Type ¶
func (imh *InterceptedMetaHeader) Type() string
Type returns the type of this intercepted data
type InterceptedMiniblock ¶ added in v1.0.104
type InterceptedMiniblock struct {
// contains filtered or unexported fields
}
InterceptedMiniblock is a wrapper over a miniblock
func NewInterceptedMiniblock ¶ added in v1.0.104
func NewInterceptedMiniblock(arg *ArgInterceptedMiniblock) (*InterceptedMiniblock, error)
NewInterceptedMiniblock creates a new instance of InterceptedMiniblock struct
func (*InterceptedMiniblock) CheckValidity ¶ added in v1.0.104
func (inMb *InterceptedMiniblock) CheckValidity() error
CheckValidity checks if the received tx block body is valid (not nil fields)
func (*InterceptedMiniblock) Hash ¶ added in v1.0.104
func (inMb *InterceptedMiniblock) Hash() []byte
Hash gets the hash of this transaction block body
func (*InterceptedMiniblock) Identifiers ¶ added in v1.0.110
func (inMb *InterceptedMiniblock) Identifiers() [][]byte
Identifiers returns the identifiers used in requests
func (*InterceptedMiniblock) IsForCurrentShard ¶ added in v1.0.104
func (inMb *InterceptedMiniblock) IsForCurrentShard() bool
IsForCurrentShard returns true if at least one contained miniblock is for current shard
func (*InterceptedMiniblock) IsInterfaceNil ¶ added in v1.0.104
func (inMb *InterceptedMiniblock) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*InterceptedMiniblock) Miniblock ¶ added in v1.0.104
func (inMb *InterceptedMiniblock) Miniblock() *block.MiniBlock
Miniblock returns the miniblock held by this wrapper
func (*InterceptedMiniblock) String ¶ added in v1.0.104
func (inMb *InterceptedMiniblock) String() string
String returns the transactions body's most important fields as string
func (*InterceptedMiniblock) Type ¶ added in v1.0.104
func (inMb *InterceptedMiniblock) Type() string
Type returns the type of this intercepted data