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

Method AddLocals

core/tx_pool.go:901–903  ·  view source on GitHub ↗

AddLocals enqueues a batch of transactions into the pool if they are valid, marking the senders as a local ones in the mean time, ensuring they go around the local pricing constraints.

(txs []*types.Transaction)

Source from the content-addressed store, hash-verified

899// marking the senders as a local ones in the mean time, ensuring they go around
900// the local pricing constraints.
901func (pool *TxPool) AddLocals(txs []*types.Transaction) []error {
902 return pool.addTxs(txs, !pool.config.NoLocals)
903}
904
905// AddRemotes enqueues a batch of transactions into the pool if they are valid.
906// If the senders are not among the locally tracked ones, full pricing constraints

Callers 1

Calls 1

addTxsMethod · 0.95

Tested by 1