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

Method AddRemote

core/tx_pool.go:894–896  ·  view source on GitHub ↗

AddRemote enqueues a single transaction into the pool if it is valid. If the sender is not among the locally tracked ones, full pricing constraints will apply.

(tx *types.Transaction)

Source from the content-addressed store, hash-verified

892// sender is not among the locally tracked ones, full pricing constraints will
893// apply.
894func (pool *TxPool) AddRemote(tx *types.Transaction) error {
895 return pool.addTx(tx, false)
896}
897
898// AddLocals enqueues a batch of transactions into the pool if they are valid,
899// marking the senders as a local ones in the mean time, ensuring they go around

Calls 1

addTxMethod · 0.95