Documentation ¶
Index ¶
- type Chain
- func (_m *Chain) BestViewCommitteeFromBlock() common.Hash
- func (_m *Chain) CommitteeEngineVersion() int
- func (_m *Chain) CommitteesFromViewHashForShard(committeeHash common.Hash, shardID byte) ([]incognitokey.CommitteePublicKey, error)
- func (_m *Chain) CreateNewBlock(version int, proposer string, round int, startTime int64, ...) (types.BlockInterface, error)
- func (_m *Chain) CreateNewBlockFromOldBlock(oldBlock types.BlockInterface, proposer string, startTime int64, ...) (types.BlockInterface, error)
- func (_m *Chain) CurrentHeight() uint64
- func (_m *Chain) GetActiveShardNumber() int
- func (_m *Chain) GetBestView() multiview.View
- func (_m *Chain) GetBestViewHash() string
- func (_m *Chain) GetBestViewHeight() uint64
- func (_m *Chain) GetChainDatabase() incdb.Database
- func (_m *Chain) GetChainName() string
- func (_m *Chain) GetCommittee() []incognitokey.CommitteePublicKey
- func (_m *Chain) GetCommitteeSize() int
- func (_m *Chain) GetConsensusType() string
- func (_m *Chain) GetEpoch() uint64
- func (_m *Chain) GetFinalView() multiview.View
- func (_m *Chain) GetFinalViewHash() string
- func (_m *Chain) GetFinalViewHeight() uint64
- func (_m *Chain) GetLastBlockTimeStamp() int64
- func (_m *Chain) GetLastProposerIndex() int
- func (_m *Chain) GetMaxBlkCreateTime() time.Duration
- func (_m *Chain) GetMinBlkInterval() time.Duration
- func (_m *Chain) GetPendingCommittee() []incognitokey.CommitteePublicKey
- func (_m *Chain) GetProposerByTimeSlot(committeeViewHash common.Hash, shardID byte, ts int64, ...) (incognitokey.CommitteePublicKey, int, error)
- func (_m *Chain) GetPubKeyCommitteeIndex(_a0 string) int
- func (_m *Chain) GetShardID() int
- func (_m *Chain) GetSigningCommitteesFromBestView(committeeViewHash common.Hash, proposerIndex int, ...) []incognitokey.CommitteePublicKey
- func (_m *Chain) GetViewByHash(hash common.Hash) multiview.View
- func (_m *Chain) InsertBlock(block types.BlockInterface, shouldValidate bool) error
- func (_m *Chain) IsBeaconChain() bool
- func (_m *Chain) IsReady() bool
- func (_m *Chain) ReplacePreviousValidationData(previousBlockHash common.Hash, newValidationData string) error
- func (_m *Chain) SetReady(_a0 bool)
- func (_m *Chain) UnmarshalBlock(blockString []byte) (types.BlockInterface, error)
- func (_m *Chain) ValidateBlockSignatures(block types.BlockInterface, committees []incognitokey.CommitteePublicKey) error
- func (_m *Chain) ValidatePreSignBlock(block types.BlockInterface, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
Chain is an autogenerated mock type for the Chain type
func (*Chain) BestViewCommitteeFromBlock ¶
BestViewCommitteeFromBlock provides a mock function with given fields:
func (*Chain) CommitteeEngineVersion ¶
CommitteeEngineVersion provides a mock function with given fields:
func (*Chain) CommitteesFromViewHashForShard ¶
func (_m *Chain) CommitteesFromViewHashForShard(committeeHash common.Hash, shardID byte) ([]incognitokey.CommitteePublicKey, error)
CommitteesFromViewHashForShard provides a mock function with given fields: committeeHash, shardID
func (*Chain) CreateNewBlock ¶
func (_m *Chain) CreateNewBlock(version int, proposer string, round int, startTime int64, committees []incognitokey.CommitteePublicKey, hash common.Hash) (types.BlockInterface, error)
CreateNewBlock provides a mock function with given fields: version, proposer, round, startTime, committees, hash
func (*Chain) CreateNewBlockFromOldBlock ¶
func (_m *Chain) CreateNewBlockFromOldBlock(oldBlock types.BlockInterface, proposer string, startTime int64, committees []incognitokey.CommitteePublicKey, hash common.Hash) (types.BlockInterface, error)
CreateNewBlockFromOldBlock provides a mock function with given fields: oldBlock, proposer, startTime, committees, hash
func (*Chain) CurrentHeight ¶
CurrentHeight provides a mock function with given fields:
func (*Chain) GetActiveShardNumber ¶
GetActiveShardNumber provides a mock function with given fields:
func (*Chain) GetBestView ¶
GetBestView provides a mock function with given fields:
func (*Chain) GetBestViewHash ¶
GetBestViewHash provides a mock function with given fields:
func (*Chain) GetBestViewHeight ¶
GetBestViewHeight provides a mock function with given fields:
func (*Chain) GetChainDatabase ¶
GetChainDatabase provides a mock function with given fields:
func (*Chain) GetChainName ¶
GetChainName provides a mock function with given fields:
func (*Chain) GetCommittee ¶
func (_m *Chain) GetCommittee() []incognitokey.CommitteePublicKey
GetCommittee provides a mock function with given fields:
func (*Chain) GetCommitteeSize ¶
GetCommitteeSize provides a mock function with given fields:
func (*Chain) GetConsensusType ¶
GetConsensusType provides a mock function with given fields:
func (*Chain) GetFinalView ¶
GetFinalView provides a mock function with given fields:
func (*Chain) GetFinalViewHash ¶
GetFinalViewHash provides a mock function with given fields:
func (*Chain) GetFinalViewHeight ¶
GetFinalViewHeight provides a mock function with given fields:
func (*Chain) GetLastBlockTimeStamp ¶
GetLastBlockTimeStamp provides a mock function with given fields:
func (*Chain) GetLastProposerIndex ¶
GetLastProposerIndex provides a mock function with given fields:
func (*Chain) GetMaxBlkCreateTime ¶
GetMaxBlkCreateTime provides a mock function with given fields:
func (*Chain) GetMinBlkInterval ¶
GetMinBlkInterval provides a mock function with given fields:
func (*Chain) GetPendingCommittee ¶
func (_m *Chain) GetPendingCommittee() []incognitokey.CommitteePublicKey
GetPendingCommittee provides a mock function with given fields:
func (*Chain) GetProposerByTimeSlot ¶
func (_m *Chain) GetProposerByTimeSlot(committeeViewHash common.Hash, shardID byte, ts int64, committees []incognitokey.CommitteePublicKey) (incognitokey.CommitteePublicKey, int, error)
GetProposerByTimeSlot provides a mock function with given fields: committeeViewHash, shardID, ts, committees
func (*Chain) GetPubKeyCommitteeIndex ¶
GetPubKeyCommitteeIndex provides a mock function with given fields: _a0
func (*Chain) GetShardID ¶
GetShardID provides a mock function with given fields:
func (*Chain) GetSigningCommitteesFromBestView ¶
func (_m *Chain) GetSigningCommitteesFromBestView(committeeViewHash common.Hash, proposerIndex int, committees []incognitokey.CommitteePublicKey, shardID byte) []incognitokey.CommitteePublicKey
SigningCommittees provides a mock function with given fields: committeeViewHash, proposerIndex, committees, shardID
func (*Chain) GetViewByHash ¶
GetViewByHash provides a mock function with given fields: hash
func (*Chain) InsertBlock ¶
func (_m *Chain) InsertBlock(block types.BlockInterface, shouldValidate bool) error
InsertBlock provides a mock function with given fields: block, shouldValidate
func (*Chain) IsBeaconChain ¶
IsBeaconChain provides a mock function with given fields:
func (*Chain) ReplacePreviousValidationData ¶
func (_m *Chain) ReplacePreviousValidationData(previousBlockHash common.Hash, newValidationData string) error
ReplacePreviousValidationData provides a mock function with given fields: previousBlockHash, newValidationData
func (*Chain) UnmarshalBlock ¶
func (_m *Chain) UnmarshalBlock(blockString []byte) (types.BlockInterface, error)
UnmarshalBlock provides a mock function with given fields: blockString
func (*Chain) ValidateBlockSignatures ¶
func (_m *Chain) ValidateBlockSignatures(block types.BlockInterface, committees []incognitokey.CommitteePublicKey) error
ValidateBlockSignatures provides a mock function with given fields: block, committees
func (*Chain) ValidatePreSignBlock ¶
func (_m *Chain) ValidatePreSignBlock(block types.BlockInterface, signingCommittees []incognitokey.CommitteePublicKey, committees []incognitokey.CommitteePublicKey) error
ValidatePreSignBlock provides a mock function with given fields: block, signingCommittees, committees