Documentation
¶
Overview ¶
Package examples demonstrates integration between consensus and node packages
Index ¶
- func RunNodeIntegrationExample()
- type ExampleBlock
- func (b *ExampleBlock) Accept(context.Context) error
- func (b *ExampleBlock) Bytes() []byte
- func (b *ExampleBlock) Height() uint64
- func (b *ExampleBlock) ID() ids.ID
- func (b *ExampleBlock) ParentID() ids.ID
- func (b *ExampleBlock) Reject(context.Context) error
- func (b *ExampleBlock) Timestamp() int64
- func (b *ExampleBlock) Verify(context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunNodeIntegrationExample ¶
func RunNodeIntegrationExample()
Types ¶
type ExampleBlock ¶
type ExampleBlock struct {
// contains filtered or unexported fields
}
Example block for demonstration
func (*ExampleBlock) Bytes ¶
func (b *ExampleBlock) Bytes() []byte
func (*ExampleBlock) Height ¶
func (b *ExampleBlock) Height() uint64
func (*ExampleBlock) ID ¶
func (b *ExampleBlock) ID() ids.ID
func (*ExampleBlock) ParentID ¶
func (b *ExampleBlock) ParentID() ids.ID
func (*ExampleBlock) Timestamp ¶
func (b *ExampleBlock) Timestamp() int64
Click to show internal directories.
Click to hide internal directories.