Documentation
¶
Overview ¶
Package executor is a generated GoMock package.
Index ¶
- Variables
- func VerifyWarpMessages(ctx context.Context, networkID uint32, validatorState validators.State, ...) error
- type Block
- func (b *Block) Accept(context.Context) error
- func (b *Block) EpochBit() bool
- func (b *Block) FPCVotes() [][]byte
- func (b *Block) Options(context.Context) ([2]block.Block, error)
- func (b *Block) ParentID() ids.ID
- func (b *Block) Reject(context.Context) error
- func (*Block) ShouldVerifyWithContext(context.Context) (bool, error)
- func (b *Block) Status() uint8
- func (b *Block) Timestamp() time.Time
- func (b *Block) Verify(ctx context.Context) error
- func (b *Block) VerifyWithContext(ctx context.Context, blockContext *block.Context) error
- type Manager
- type MockManager
- func (m *MockManager) EXPECT() *MockManagerMockRecorder
- func (m *MockManager) GetBlock(blkID ids.ID) (consensusman.Block, error)
- func (m *MockManager) GetState(blkID ids.ID) (state.Chain, bool)
- func (m *MockManager) GetStatelessBlock(blkID ids.ID) (block.Block, error)
- func (m *MockManager) LastAccepted() ids.ID
- func (m *MockManager) NewBlock(arg0 block.Block) consensusman.Block
- func (m *MockManager) Preferred() ids.ID
- func (m *MockManager) SetPreference(blkID ids.ID) bool
- func (m *MockManager) VerifyTx(tx *txs.Tx) error
- func (m *MockManager) VerifyUniqueInputs(blkID ids.ID, inputs set.Set[ids.ID]) error
- type MockManagerMockRecorder
- func (mr *MockManagerMockRecorder) GetBlock(blkID any) *gomock.Call
- func (mr *MockManagerMockRecorder) GetState(blkID any) *gomock.Call
- func (mr *MockManagerMockRecorder) GetStatelessBlock(blkID any) *gomock.Call
- func (mr *MockManagerMockRecorder) LastAccepted() *gomock.Call
- func (mr *MockManagerMockRecorder) NewBlock(arg0 any) *gomock.Call
- func (mr *MockManagerMockRecorder) Preferred() *gomock.Call
- func (mr *MockManagerMockRecorder) SetPreference(blkID any) *gomock.Call
- func (mr *MockManagerMockRecorder) VerifyTx(tx any) *gomock.Call
- func (mr *MockManagerMockRecorder) VerifyUniqueInputs(blkID, inputs any) *gomock.Call
- type SharedMemory
Constants ¶
This section is empty.
Variables ¶
var ( ErrChainNotSynced = errors.New("chain not synced") ErrImportTxWhilePartialSyncing = errors.New("issuing an import tx is not allowed while partial syncing") )
var ( ErrConflictingBlockTxs = errors.New("block contains conflicting transactions") ErrStandardBlockWithoutChanges = errors.New("BanffStandardBlock performs no state changes") )
var (
ErrNotOracle = errors.New("block doesn't have options")
)
Functions ¶
func VerifyWarpMessages ¶
func VerifyWarpMessages( ctx context.Context, networkID uint32, validatorState validators.State, pChainHeight uint64, b block.Block, ) error
VerifyWarpMessages verifies all warp messages in the block. If any of the warp messages are invalid, an error is returned.
When GPU acceleration is available and the block contains multiple BLS warp signatures, verification is batched through the GPU for throughput. Otherwise falls back to sequential CPU verification.
Types ¶
type Block ¶
type Block struct {
platformblock.Block
// contains filtered or unexported fields
}
Exported for testing in platformvm package.
func (*Block) EpochBit ¶
EpochBit implements the chain.Block interface Returns the epoch fence bit for FPC
func (*Block) FPCVotes ¶
FPCVotes implements the chain.Block interface Returns embedded fast-path consensus vote references
func (*Block) ShouldVerifyWithContext ¶
type Manager ¶
type Manager interface {
state.Versions
// Returns the ID of the most recently accepted block.
LastAccepted() ids.ID
SetPreference(blkID ids.ID)
Preferred() ids.ID
GetBlock(blkID ids.ID) (block.Block, error)
GetStatelessBlock(blkID ids.ID) (platformblock.Block, error)
NewBlock(platformblock.Block) block.Block
// VerifyTx verifies that the transaction can be issued based on the currently
// preferred state. This should *not* be used to verify transactions in a block.
VerifyTx(tx *txs.Tx) error
// VerifyUniqueInputs verifies that the inputs are not duplicated in the
// provided blk or any of its ancestors pinned in memory.
VerifyUniqueInputs(blkID ids.ID, inputs set.Set[ids.ID]) error
}
type MockManager ¶
type MockManager struct {
// contains filtered or unexported fields
}
MockManager is a mock of Manager interface.
func NewMockManager ¶
func NewMockManager(ctrl *gomock.Controller) *MockManager
NewMockManager creates a new mock instance.
func (*MockManager) EXPECT ¶
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManager) GetBlock ¶
func (m *MockManager) GetBlock(blkID ids.ID) (consensusman.Block, error)
GetBlock mocks base method.
func (*MockManager) GetStatelessBlock ¶
GetStatelessBlock mocks base method.
func (*MockManager) LastAccepted ¶
func (m *MockManager) LastAccepted() ids.ID
LastAccepted mocks base method.
func (*MockManager) NewBlock ¶
func (m *MockManager) NewBlock(arg0 block.Block) consensusman.Block
NewBlock mocks base method.
func (*MockManager) Preferred ¶
func (m *MockManager) Preferred() ids.ID
Preferred mocks base method.
func (*MockManager) SetPreference ¶
func (m *MockManager) SetPreference(blkID ids.ID) bool
SetPreference mocks base method.
func (*MockManager) VerifyTx ¶
func (m *MockManager) VerifyTx(tx *txs.Tx) error
VerifyTx mocks base method.
func (*MockManager) VerifyUniqueInputs ¶
VerifyUniqueInputs mocks base method.
type MockManagerMockRecorder ¶
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager.
func (*MockManagerMockRecorder) GetBlock ¶
func (mr *MockManagerMockRecorder) GetBlock(blkID any) *gomock.Call
GetBlock indicates an expected call of GetBlock.
func (*MockManagerMockRecorder) GetState ¶
func (mr *MockManagerMockRecorder) GetState(blkID any) *gomock.Call
GetState indicates an expected call of GetState.
func (*MockManagerMockRecorder) GetStatelessBlock ¶
func (mr *MockManagerMockRecorder) GetStatelessBlock(blkID any) *gomock.Call
GetStatelessBlock indicates an expected call of GetStatelessBlock.
func (*MockManagerMockRecorder) LastAccepted ¶
func (mr *MockManagerMockRecorder) LastAccepted() *gomock.Call
LastAccepted indicates an expected call of LastAccepted.
func (*MockManagerMockRecorder) NewBlock ¶
func (mr *MockManagerMockRecorder) NewBlock(arg0 any) *gomock.Call
NewBlock indicates an expected call of NewBlock.
func (*MockManagerMockRecorder) Preferred ¶
func (mr *MockManagerMockRecorder) Preferred() *gomock.Call
Preferred indicates an expected call of Preferred.
func (*MockManagerMockRecorder) SetPreference ¶
func (mr *MockManagerMockRecorder) SetPreference(blkID any) *gomock.Call
SetPreference indicates an expected call of SetPreference.
func (*MockManagerMockRecorder) VerifyTx ¶
func (mr *MockManagerMockRecorder) VerifyTx(tx any) *gomock.Call
VerifyTx indicates an expected call of VerifyTx.
func (*MockManagerMockRecorder) VerifyUniqueInputs ¶
func (mr *MockManagerMockRecorder) VerifyUniqueInputs(blkID, inputs any) *gomock.Call
VerifyUniqueInputs indicates an expected call of VerifyUniqueInputs.
type SharedMemory ¶
type SharedMemory interface {
}
SharedMemory provides cross-chain atomic operations
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package executormock is a generated GoMock package.
|
Package executormock is a generated GoMock package. |