Documentation
¶
Index ¶
- Variables
- type Block
- func (b *Block) Accept(context.Context) error
- func (b *Block) Bytes() []byte
- func (b *Block) Height() uint64
- func (b *Block) ID() ids.ID
- func (b *Block) Parent() ids.ID
- func (b *Block) Reject(context.Context) error
- func (b *Block) State() state.ReadOnlyChain
- func (b *Block) Status() chain.Status
- func (b *Block) Timestamp() time.Time
- func (b *Block) Verify(context.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GenesisID = ids.GenerateTestID() GenesisHeight = uint64(0) GenesisTimestamp = time.Unix(0, 0) GenesisBytes = []byte("genesis") Genesis = &Block{ TestBlock: chain.TestBlock{ IDV: GenesisID, HeightV: GenesisHeight, TimestampV: GenesisTimestamp, ParentV: ids.Empty, BytesV: GenesisBytes, StatusV: chain.Accepted, }, } )
Functions ¶
This section is empty.
Types ¶
type Block ¶
Block is a test block that implements chain.Block
func BuildChild ¶
BuildChild creates a child block of the given parent
func (*Block) State ¶
func (b *Block) State() state.ReadOnlyChain
Click to show internal directories.
Click to hide internal directories.