Documentation ¶
Index ¶
- Variables
- type ChainTxPool
- type RecentUsedTxInfoObj
- type RecentUsedTxManager
- func (r *RecentUsedTxManager) AddRecentUsedTx(accountId celltype.DasAccountId, tx RecentUsedTxInfoObj)
- func (r *RecentUsedTxManager) AddRecentUsedTx2(tx RecentUsedTxInfoObj)
- func (r *RecentUsedTxManager) PopOneLocalRecentUsedTx(key interface{}) *RecentUsedTxInfoObj
- func (r *RecentUsedTxManager) PopOneRecentUsedTx(chainTxPool *ChainTxPool, key interface{}) *RecentUsedTxInfoObj
- func (r *RecentUsedTxManager) RemoveOneRecentUsedTx(accountId celltype.DasAccountId, newTxHash types.Hash)
- func (r *RecentUsedTxManager) RemoveOneRecentUsedTxByHash(txHash types.Hash)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ChainTxPoolManager *ChainTxPool RecentAccountCellUsedTxManager *RecentUsedTxManager RecentManagerCellUsedTxManager *RecentUsedTxManager RecentIncomeCellUsedTxManager *RecentUsedTxManager )
Functions ¶
This section is empty.
Types ¶
type ChainTxPool ¶
type ChainTxPool struct {
// contains filtered or unexported fields
}
func NewChainTxPool ¶
func NewChainTxPool() *ChainTxPool
func (*ChainTxPool) FindOneTx ¶
func (c *ChainTxPool) FindOneTx(targetTxHash string) bool
func (*ChainTxPool) Print ¶
func (c *ChainTxPool) Print() string
func (*ChainTxPool) StartLoopGetRawTxPool ¶
type RecentUsedTxInfoObj ¶
type RecentUsedTxManager ¶
type RecentUsedTxManager struct { UsedTx sync.Map RetryTime int RetryDelay time.Duration // contains filtered or unexported fields }
func NewRecentUsedTxManager ¶
func NewRecentUsedTxManager(retryTime int, retryDelay time.Duration, overdueSec int64) *RecentUsedTxManager
func (*RecentUsedTxManager) AddRecentUsedTx ¶
func (r *RecentUsedTxManager) AddRecentUsedTx(accountId celltype.DasAccountId, tx RecentUsedTxInfoObj)
func (*RecentUsedTxManager) AddRecentUsedTx2 ¶
func (r *RecentUsedTxManager) AddRecentUsedTx2(tx RecentUsedTxInfoObj)
func (*RecentUsedTxManager) PopOneLocalRecentUsedTx ¶
func (r *RecentUsedTxManager) PopOneLocalRecentUsedTx(key interface{}) *RecentUsedTxInfoObj
func (*RecentUsedTxManager) PopOneRecentUsedTx ¶
func (r *RecentUsedTxManager) PopOneRecentUsedTx(chainTxPool *ChainTxPool, key interface{}) *RecentUsedTxInfoObj
func (*RecentUsedTxManager) RemoveOneRecentUsedTx ¶
func (r *RecentUsedTxManager) RemoveOneRecentUsedTx(accountId celltype.DasAccountId, newTxHash types.Hash)
func (*RecentUsedTxManager) RemoveOneRecentUsedTxByHash ¶
func (r *RecentUsedTxManager) RemoveOneRecentUsedTxByHash(txHash types.Hash)
Click to show internal directories.
Click to hide internal directories.