forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1
Poor man's package relay
John Newbery edited this page Jul 21, 2021
·
3 revisions
ATMP returns:
-
TX_LOW_FEE
if fee is below the mempool min fee / min relay fee / mempool full. -
TX_MISSING_INPUTS
-> return set of missing parents
In net_processing:
- If ATMP returns
TX_LOW_FEE
- check orphanage for children and resubmit with the most valuable child
- else add to
g_cheappool
(limited to 100, evict randomly)
- If ATMP returns
TX_MISSING_INPUTS
:- check
g_cheappool
for all parents. If they're all found, then resubmit as a package.
- check
Demonstration Branch: https://github.com/jnewbery/bitcoin/tree/2021-06-pmpr