Documentation ¶
Index ¶
- func NewNode(opts ...agency.ConfigOption) (agency.Order, error)
- type MempoolConfig
- type Node
- func (n *Node) Commit() chan *pb.CommitEvent
- func (n *Node) DelNode(delID uint64) error
- func (n *Node) GetPendingNonceByAccount(account string) uint64
- func (n *Node) GetPendingTxByHash(hash *types.Hash) pb.Transaction
- func (n *Node) Prepare(tx pb.Transaction) error
- func (n *Node) Quorum() uint64
- func (n *Node) Ready() error
- func (n *Node) ReportState(height uint64, blockHash *types.Hash, txHashList []*types.Hash)
- func (n *Node) Start() error
- func (n *Node) Step(msg []byte) error
- func (n *Node) Stop()
- func (n *Node) SubscribeTxEvent(ch chan<- pb.Transactions) event.Subscription
- type SOLO
- type SOLOConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MempoolConfig ¶ added in v1.4.0
type Node ¶
func (*Node) Commit ¶
func (n *Node) Commit() chan *pb.CommitEvent
func (*Node) GetPendingNonceByAccount ¶ added in v1.0.1
func (*Node) GetPendingTxByHash ¶ added in v1.9.0
func (n *Node) GetPendingTxByHash(hash *types.Hash) pb.Transaction
func (*Node) ReportState ¶
func (*Node) SubscribeTxEvent ¶ added in v1.8.0
func (n *Node) SubscribeTxEvent(ch chan<- pb.Transactions) event.Subscription
type SOLO ¶ added in v1.4.0
type SOLO struct { BatchTimeout time.Duration `mapstructure:"batch_timeout"` MempoolConfig MempoolConfig `mapstructure:"mempool"` }
type SOLOConfig ¶ added in v1.4.0
type SOLOConfig struct {
SOLO SOLO
}
Click to show internal directories.
Click to hide internal directories.