HomePhabricator

Factor BroadcastTransaction out of sendrawtransaction

Description

Factor BroadcastTransaction out of sendrawtransaction

Summary:

Factor out a new BroadcastTransaction function, performing the core work
of the sendrawtransaction rpc, so that it can be used from the GUI code.
Move it from src/rpc/ to src/node/.

Partial backport of core PR14978:
https://github.com/bitcoin/bitcoin/pull/14978/commits/81cd9588484cb4f4050ea4e239da0681111795db

Test Plan:

ninja all check
./test/functional/test_runner.py rpc_rawtransaction

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

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

Details

Provenance
Glenn Willen <gwillen@nerdnet.org>Authored on Jan 9 2019, 06:16
FabienCommitted on Apr 15 2020, 10:49
FabienPushed on Apr 15 2020, 10:49
Reviewer
Restricted Project
Differential Revision
D5706: Factor BroadcastTransaction out of sendrawtransaction
Parents
rABC501a8f0d1edd: Merge #17121: test: speedup wallet_backup by whitelisting peers (immediate tx…
Branches
Unknown
Tags
Unknown