Documentation
¶
Index ¶
- type Communicator
- type Core
- type OnDemandTxPool
- func (o *OnDemandTxPool) Add(newTx *tx.Transaction) error
- func (o *OnDemandTxPool) AddLocal(newTx *tx.Transaction) error
- func (o *OnDemandTxPool) Close()
- func (o *OnDemandTxPool) Dump() tx.Transactions
- func (o *OnDemandTxPool) Executables() tx.Transactions
- func (o *OnDemandTxPool) Fill(txs tx.Transactions)
- func (o *OnDemandTxPool) Get(txID thor.Bytes32) *tx.Transaction
- func (o *OnDemandTxPool) Len() int
- func (o *OnDemandTxPool) Remove(txHash thor.Bytes32, txID thor.Bytes32) bool
- func (o *OnDemandTxPool) StrictlyAdd(newTx *tx.Transaction) error
- func (o *OnDemandTxPool) SubscribeTxEvent(ch chan *txpool.TxEvent) event.Subscription
- type Options
- type Solo
- type TxPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Communicator ¶
type Communicator struct{}
Communicator in solo is a fake one just for api handler.
func (*Communicator) PeersStats ¶
func (comm *Communicator) PeersStats() []*comm.PeerStats
PeersStats returns nil solo doesn't join p2p network.
type Core ¶ added in v2.4.0
type Core struct {
// contains filtered or unexported fields
}
func NewCore ¶ added in v2.4.0
func NewCore( repo *chain.Repository, stater *state.Stater, logDB *logdb.LogDB, options Options, forkConfig *thor.ForkConfig, ) *Core
func (*Core) IsExecutable ¶ added in v2.4.0
func (c *Core) IsExecutable(trx *tx.Transaction) (bool, error)
func (*Core) Pack ¶ added in v2.4.0
func (c *Core) Pack(pendingTxs tx.Transactions, onDemand bool) ([]*tx.Transaction, error)
type OnDemandTxPool ¶ added in v2.4.0
type OnDemandTxPool struct {
// contains filtered or unexported fields
}
func NewOnDemandTxPool ¶ added in v2.4.0
func NewOnDemandTxPool(engine *Core) *OnDemandTxPool
func (*OnDemandTxPool) Add ¶ added in v2.4.1
func (o *OnDemandTxPool) Add(newTx *tx.Transaction) error
func (*OnDemandTxPool) AddLocal ¶ added in v2.4.0
func (o *OnDemandTxPool) AddLocal(newTx *tx.Transaction) error
func (*OnDemandTxPool) Close ¶ added in v2.4.1
func (o *OnDemandTxPool) Close()
func (*OnDemandTxPool) Dump ¶ added in v2.4.0
func (o *OnDemandTxPool) Dump() tx.Transactions
func (*OnDemandTxPool) Executables ¶ added in v2.4.0
func (o *OnDemandTxPool) Executables() tx.Transactions
func (*OnDemandTxPool) Fill ¶ added in v2.4.1
func (o *OnDemandTxPool) Fill(txs tx.Transactions)
func (*OnDemandTxPool) Get ¶ added in v2.4.0
func (o *OnDemandTxPool) Get(txID thor.Bytes32) *tx.Transaction
func (*OnDemandTxPool) Len ¶ added in v2.4.0
func (o *OnDemandTxPool) Len() int
func (*OnDemandTxPool) StrictlyAdd ¶ added in v2.4.1
func (o *OnDemandTxPool) StrictlyAdd(newTx *tx.Transaction) error
func (*OnDemandTxPool) SubscribeTxEvent ¶ added in v2.4.0
func (o *OnDemandTxPool) SubscribeTxEvent(ch chan *txpool.TxEvent) event.Subscription
Click to show internal directories.
Click to hide internal directories.