Documentation ¶
Index ¶
- Variables
- type Empty
- type TxPool
- func (tp *TxPool) AddTx(tx *types.Transaction)
- func (tp *TxPool) AddTx_RPC(args *types.Transaction, reply *types.RPCResponse) error
- func (tp *TxPool) AddTxs(txs []*types.Transaction)
- func (tp *TxPool) GetTxs() []*types.Transaction
- func (tp *TxPool) GetTxs_RPC(_ *Empty, reply *types.RPCResponse) error
- func (txp *TxPool) IsValid(tx *types.Transaction) bool
- func (tp *TxPool) RemoveTx(tx *types.Transaction) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidTransaction = errors.New("invalid transaction")
)
Functions ¶
This section is empty.
Types ¶
type TxPool ¶
type TxPool struct { MinFee *big.Int State *dbstore.DB Transactions []*types.Transaction TxPoolCh chan *types.Transaction LatestIncludedTxs *lru.Cache }
func (*TxPool) AddTx ¶
func (tp *TxPool) AddTx(tx *types.Transaction)
func (*TxPool) AddTx_RPC ¶
func (tp *TxPool) AddTx_RPC(args *types.Transaction, reply *types.RPCResponse) error
func (*TxPool) AddTxs ¶
func (tp *TxPool) AddTxs(txs []*types.Transaction)
func (*TxPool) GetTxs ¶
func (tp *TxPool) GetTxs() []*types.Transaction
func (*TxPool) GetTxs_RPC ¶
func (tp *TxPool) GetTxs_RPC(_ *Empty, reply *types.RPCResponse) error
Click to show internal directories.
Click to hide internal directories.