Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block interface {
protoconchain.Block
smblock.WithVerifyContext
// Timestamp returns the block's timestamp
Timestamp() time.Time
// State intends to return the new chain state following this block's
// acceptance. The new chain state is built (but not persisted) following a
// block's verification to allow block's descendants verification before
// being accepted.
State() (database.Database, error)
}
type Chain ¶
type Chain interface {
LastAccepted() ids.ID
SetChainState(state consensusinterfaces.State)
GetBlock(blkID ids.ID) (Block, error)
// Creates a fully verifiable and executable block, which can be processed
// by the consensus engine, from a stateless block.
NewBlock(blk *xsblock.Stateless) (Block, error)
}
Click to show internal directories.
Click to hide internal directories.