Documentation ¶
Overview ¶
Package solo solo共识挖矿
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) GetGenesisBlockTime() int64
- func (client *Client) ProcEvent(msg queue.Message) bool
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 客户端
func (*Client) CheckBlock ¶
CheckBlock solo不检查任何的交易
func (*Client) CreateGenesisTx ¶
func (client *Client) CreateGenesisTx() (ret []*types.Transaction)
CreateGenesisTx 创建创世交易
func (*Client) GetGenesisBlockTime ¶
GetGenesisBlockTime 获取创世区块时间
Click to show internal directories.
Click to hide internal directories.