AddLocal enqueues a single transaction into the pool if it is valid, marking the sender as a local one in the mean time, ensuring it goes around the local pricing constraints.
(tx *types.Transaction)
| 885 | // the sender as a local one in the mean time, ensuring it goes around the local |
| 886 | // pricing constraints. |
| 887 | func (pool *TxPool) AddLocal(tx *types.Transaction) error { |
| 888 | return pool.addTx(tx, !pool.config.NoLocals) |
| 889 | } |
| 890 | |
| 891 | // AddRemote enqueues a single transaction into the pool if it is valid. If the |
| 892 | // sender is not among the locally tracked ones, full pricing constraints will |