interceptedBlocks

package
v1.1.66 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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

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

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

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

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

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

type InterceptedMiniblock struct {
	// contains filtered or unexported fields
}

InterceptedMiniblock is a wrapper over a miniblock

func NewInterceptedMiniblock

func NewInterceptedMiniblock(arg *ArgInterceptedMiniblock) (*InterceptedMiniblock, error)

NewInterceptedMiniblock creates a new instance of InterceptedMiniblock struct

func (*InterceptedMiniblock) CheckValidity

func (inMb *InterceptedMiniblock) CheckValidity() error

CheckValidity checks if the received tx block body is valid (not nil fields)

func (*InterceptedMiniblock) Hash

func (inMb *InterceptedMiniblock) Hash() []byte

Hash gets the hash of this transaction block body

func (*InterceptedMiniblock) Identifiers

func (inMb *InterceptedMiniblock) Identifiers() [][]byte

Identifiers returns the identifiers used in requests

func (*InterceptedMiniblock) IsForCurrentShard

func (inMb *InterceptedMiniblock) IsForCurrentShard() bool

IsForCurrentShard returns true if at least one contained miniblock is for current shard

func (*InterceptedMiniblock) IsInterfaceNil

func (inMb *InterceptedMiniblock) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*InterceptedMiniblock) Miniblock

func (inMb *InterceptedMiniblock) Miniblock() *block.MiniBlock

Miniblock returns the miniblock held by this wrapper

func (*InterceptedMiniblock) String

func (inMb *InterceptedMiniblock) String() string

String returns the transactions body's most important fields as string

func (*InterceptedMiniblock) Type

func (inMb *InterceptedMiniblock) Type() string

Type returns the type of this intercepted data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL