HomePhabricator

rpc: allow submitpackage to be called outside of regtest

Description

rpc: allow submitpackage to be called outside of regtest

Summary:

Permit (restricted topology) submitpackage RPC outside of regtest. [...]
This RPC should be safe but still experimental - interface may change, not all features (e.g. package RBF) are implemented, etc. If a miner wants to expose this to people, they can effectively use "package relay" before the p2p changes are implemented. However, please note this is not package relay; transactions submitted this way will not relay to other nodes if the feerates are below their mempool min fee. Users should put this behind some kind of rate limit or permissions.

Backport of core#27609.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D16490

Details

Provenance
glozow <gloriajzhao@gmail.com>Authored on Oct 2 2023, 09:04
FabienCommitted on Jul 18 2024, 09:03
FabienPushed on Jul 18 2024, 09:03
Reviewer
Restricted Project
Differential Revision
D16490: rpc: allow submitpackage to be called outside of regtest
Parents
rABC505f186dc297: Seeder: do not exclude nodes that use a non-default port
Branches
Unknown
Tags
Unknown