Documentation
¶
Index ¶
- type MemTxPool
- func (p *MemTxPool) AddTx(tx interfaces.Transaction) error
- func (p *MemTxPool) CheckTxExist(tx interfaces.Transaction) (interfaces.Transaction, bool)
- func (p *MemTxPool) CheckTxExistByHash(txhash fields.Hash) (interfaces.Transaction, bool)
- func (p *MemTxPool) CopyTxsOrderByFeePurity(targetblockheight uint64, maxcount uint32, maxsize uint32) []interfaces.Transaction
- func (p *MemTxPool) GetDiamondCreateTxGroup() *TxGroup
- func (p *MemTxPool) GetDiamondCreateTxs(num int) []interfaces.Transaction
- func (p *MemTxPool) GetSimpleTxGroup() *TxGroup
- func (p *MemTxPool) GetTotalCount() (uint64, uint64)
- func (p *MemTxPool) PauseEventSubscribe()
- func (p *MemTxPool) RemoveTxs(txs []interfaces.Transaction)
- func (p *MemTxPool) RemoveTxsOnNextBlockArrive(txs []interfaces.Transaction)
- func (p *MemTxPool) RenewalEventSubscribe()
- func (p *MemTxPool) SetAutomaticallyCleanInvalidTransactions(set bool)
- func (p *MemTxPool) SetBlockChain(bc interfaces.BlockChain)
- func (p *MemTxPool) Start()
- func (p *MemTxPool) SubscribeOnAddTxSuccess(addtxCh chan interfaces.Transaction)
- type TxGroup
- type TxItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemTxPool ¶
type MemTxPool struct {
// contains filtered or unexported fields
}
func NewMemTxPool ¶
func (*MemTxPool) AddTx ¶
func (p *MemTxPool) AddTx(tx interfaces.Transaction) error
func (*MemTxPool) CheckTxExist ¶
func (p *MemTxPool) CheckTxExist(tx interfaces.Transaction) (interfaces.Transaction, bool)
func (*MemTxPool) CheckTxExistByHash ¶
func (p *MemTxPool) CheckTxExistByHash(txhash fields.Hash) (interfaces.Transaction, bool)
func (*MemTxPool) CopyTxsOrderByFeePurity ¶
func (p *MemTxPool) CopyTxsOrderByFeePurity(targetblockheight uint64, maxcount uint32, maxsize uint32) []interfaces.Transaction
func (*MemTxPool) GetDiamondCreateTxGroup ¶
func (*MemTxPool) GetDiamondCreateTxs ¶
func (p *MemTxPool) GetDiamondCreateTxs(num int) []interfaces.Transaction
func (*MemTxPool) GetSimpleTxGroup ¶
func (*MemTxPool) GetTotalCount ¶
func (*MemTxPool) PauseEventSubscribe ¶
func (p *MemTxPool) PauseEventSubscribe()
Pause event subscription
func (*MemTxPool) RemoveTxs ¶
func (p *MemTxPool) RemoveTxs(txs []interfaces.Transaction)
func (*MemTxPool) RemoveTxsOnNextBlockArrive ¶
func (p *MemTxPool) RemoveTxsOnNextBlockArrive(txs []interfaces.Transaction)
func (*MemTxPool) RenewalEventSubscribe ¶
func (p *MemTxPool) RenewalEventSubscribe()
Reopen event subscription
func (*MemTxPool) SetAutomaticallyCleanInvalidTransactions ¶
func (*MemTxPool) SetBlockChain ¶
func (p *MemTxPool) SetBlockChain(bc interfaces.BlockChain)
func (*MemTxPool) SubscribeOnAddTxSuccess ¶
func (p *MemTxPool) SubscribeOnAddTxSuccess(addtxCh chan interfaces.Transaction)
type TxGroup ¶
type TxGroup struct { Head *TxItem Tail *TxItem Count int64 // contains filtered or unexported fields }
func NewTxGroup ¶
func NewTxGroup() *TxGroup
func (*TxGroup) RemoveItem ¶
Click to show internal directories.
Click to hide internal directories.