Documentation ¶
Index ¶
- Variables
- type Block
- func (b *Block) Accept(context.Context) error
- func (b *Block) Options(context.Context) ([2]snowman.Block, error)
- func (b *Block) Reject(context.Context) error
- func (*Block) ShouldVerifyWithContext(context.Context) (bool, error)
- func (b *Block) Timestamp() time.Time
- func (b *Block) Verify(ctx context.Context) error
- func (b *Block) VerifyWithContext(_ context.Context, ctx *smblock.Context) error
- type Manager
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrChainNotSynced = errors.New("chain not synced")
)
View Source
var (
ErrConflictingBlockTxs = errors.New("block contains conflicting transactions")
)
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { state.Versions // Returns the ID of the most recently accepted block. LastAccepted() ids.ID SetPreference(blkID ids.ID) (updated bool) Preferred() ids.ID GetBlock(blkID ids.ID) (snowman.Block, error) GetStatelessBlock(blkID ids.ID) (block.Block, error) NewBlock(block.Block) snowman.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 }
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package executormock is a generated GoMock package.
|
Package executormock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.