Documentation ¶
Index ¶
- func Newpbftlibbyz(cfg *pb.Consensus, sub []byte) queue.Module
- type Client
- func (client *Client) CheckBlock(parent *types.Block, current *types.BlockDetail) error
- func (client *Client) CmpBestBlock(newBlock *types.Block, cmpBlock *types.Block) bool
- func (client *Client) CreateBlock()
- func (client *Client) CreateGenesisTx() (ret []*types.Transaction)
- func (client *Client) GetGenesisBlockTime() int64
- func (client *Client) ProcEvent(msg *queue.Message) bool
- func (client *Client) ProposeAndReadReply(block *types.Block)
- func (client *Client) SetQueueClient(c queue.Client)
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 pbftlibbyz implementation
func NewBlockstore ¶
NewBlockstore create pbftlibbyz Client
func (*Client) CheckBlock ¶
CheckBlock method
func (*Client) CmpBestBlock ¶
func (*Client) CreateGenesisTx ¶
func (client *Client) CreateGenesisTx() (ret []*types.Transaction)
CreateGenesisTx get genesis tx
func (*Client) GetGenesisBlockTime ¶
GetGenesisBlockTime get genesis blocktime
func (*Client) ProposeAndReadReply ¶
ProposeAndReadReply method
func (*Client) SetQueueClient ¶
SetQueueClient method
Click to show internal directories.
Click to hide internal directories.