verify
Package verify is a generated GoMock package.
import "github.com/luxfi/node/vms/components/verify"Package verify is a generated GoMock package.
Functions
All
func All(verifiables ...Verifiable) errorAll returns nil if all the verifiables were verified with no errors
SameChain
func SameChain(ctx context.Context, consensusRuntime *runtime.Runtime, peerChainID ids.ID) errorSameChain verifies that the peerChainID is in the same network as the chain represented by consensusRuntime, but not the same chain. This is a convenience wrapper for EVM compatibility that accepts *runtime.Runtime directly. With the simplified NetworkID model (1=mainnet, 2=testnet), chains on the same network are always in the same "chain".
SameNet
func SameNet(ctx context.Context, chainRuntime *ChainContext, peerChainID ids.ID) errorSameNet verifies that the provided [ctx] was provided to a chain in the same chain as [peerChainID], but not the same chain. If this verification fails, a non-nil error will be returned.
Types
ChainContext
ChainContext provides context for chain operations
ConsensusValidatorState
ConsensusValidatorState wraps the Runtime ValidatorState interface
IsNotState
IsState
MockVerifiable
MockVerifiable is a mock of Verifiable interface.
func NewMockVerifiable(ctrl *gomock.Controller) *MockVerifiablefunc (m *MockVerifiable) EXPECT() *MockVerifiableMockRecorderfunc (m *MockVerifiable) Verify() errorMockVerifiableMockRecorder
MockVerifiableMockRecorder is the mock recorder for MockVerifiable.
func (mr *MockVerifiableMockRecorder) Verify() *gomock.CallState
ValidatorState
ValidatorState provides validator state lookups