MCPcopy Create free account
hub / github.com/CPChain/chain / AddLocal

Method AddLocal

core/tx_pool.go:887–889  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

885// the sender as a local one in the mean time, ensuring it goes around the local
886// pricing constraints.
887func (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

Calls 1

addTxMethod · 0.95