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

Method AddRemotes

core/tx_pool.go:908–910  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

906// If the senders are not among the locally tracked ones, full pricing constraints
907// will apply.
908func (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.
913func (pool *TxPool) addTx(tx *types.Transaction, local bool) error {

Calls 1

addTxsMethod · 0.95