Versions in this module Expand all Collapse all v1 v1.1.0 Aug 14, 2019 Changes in this version + var DefaultBridgeTxPoolConfig = BridgeTxPoolConfig + var ErrDuplicatedNonceTx = errors.New("Duplicated Nonce Transaction") + var ErrKnownTx = errors.New("Known Transaction") + var ErrUnknownTx = errors.New("Unknown Transaction") + type BridgeTxPool struct + func NewBridgeTxPool(config BridgeTxPoolConfig) *BridgeTxPool + func (pool *BridgeTxPool) AddLocal(tx *types.Transaction) error + func (pool *BridgeTxPool) AddLocals(txs []*types.Transaction) []error + func (pool *BridgeTxPool) Content() map[common.Address]types.Transactions + func (pool *BridgeTxPool) Get(hash common.Hash) *types.Transaction + func (pool *BridgeTxPool) GetMaxTxNonce(from *common.Address) uint64 + func (pool *BridgeTxPool) GetTx(txHash common.Hash) (*types.Transaction, error) + func (pool *BridgeTxPool) Pending() map[common.Address]types.Transactions + func (pool *BridgeTxPool) PendingTxHashesByAddress(from *common.Address, limit int) []common.Hash + func (pool *BridgeTxPool) PendingTxsByAddress(from *common.Address, limit int) types.Transactions + func (pool *BridgeTxPool) Remove(txs types.Transactions) []error + func (pool *BridgeTxPool) RemoveTx(tx *types.Transaction) error + func (pool *BridgeTxPool) SetEIP155Signer(chainID *big.Int) + func (pool *BridgeTxPool) Stats() int + func (pool *BridgeTxPool) Stop() + type BridgeTxPoolConfig struct + GlobalQueue uint64 + Journal string + ParentChainID *big.Int + Rejournal time.Duration + type DevNull struct + func (*DevNull) Close() error + func (*DevNull) Write(p []byte) (n int, err error) + type ItemSortedMap struct + func NewItemSortedMap() *ItemSortedMap + func (m *ItemSortedMap) Filter(filter func(interface{}) bool) items + func (m *ItemSortedMap) Flatten() items + func (m *ItemSortedMap) FlattenByCount(count int) items + func (m *ItemSortedMap) Get(nonce uint64) itemWithNonce + func (m *ItemSortedMap) Len() int + func (m *ItemSortedMap) Put(event itemWithNonce) + func (m *ItemSortedMap) Ready(start uint64) items + func (m *ItemSortedMap) Remove(nonce uint64) bool