Documentation ¶
Index ¶
- func New(cfg *types.Consensus, sub []byte) queue.Module
- type Client
- func (client *Client) CheckBlock(parent *types.Block, current *types.BlockDetail) error
- func (client *Client) Close()
- func (client *Client) CreateBlock()
- func (client *Client) CreateGenesisTx() (ret []*types.Transaction)
- func (client *Client) Miner(parent, block *types.Block) error
- func (client *Client) ProcEvent(msg *queue.Message) bool
- func (client *Client) Query_FlushTicket(req *types.ReqNil) (types.Message, error)
- func (client *Client) Query_GetTicketCount(req *types.ReqNil) (types.Message, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { *drivers.BaseClient // contains filtered or unexported fields }
Client export ticket client struct
func (*Client) CheckBlock ¶
CheckBlock ticket implete checkblock func
func (*Client) CreateBlock ¶
func (client *Client) CreateBlock()
CreateBlock ticket create block func
func (*Client) CreateGenesisTx ¶
func (client *Client) CreateGenesisTx() (ret []*types.Transaction)
CreateGenesisTx ticket create genesis tx
func (*Client) Query_FlushTicket ¶
Query_FlushTicket ticket query flush ticket function
Click to show internal directories.
Click to hide internal directories.