AddRemotes enqueues a batch of transactions into the pool if they are valid. If the senders are not among the locally tracked ones, full pricing constraints will apply.
(txs []*types.Transaction)
| 906 | // If the senders are not among the locally tracked ones, full pricing constraints |
| 907 | // will apply. |
| 908 | func (pool *TxPool) AddRemotes(txs []*types.Transaction) []error { |
| 909 | return pool.addTxs(txs, false) |
| 910 | } |
| 911 | |
| 912 | // addTx enqueues a single transaction into the pool if it is valid. |
| 913 | func (pool *TxPool) addTx(tx *types.Transaction, local bool) error { |