Page MenuHomePhabricator

Factor BroadcastTransaction out of sendrawtransaction
ClosedPublic

Authored by Fabien on Apr 13 2020, 14:16.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

src/rpc/rawtransaction.cpp
7 ↗(On Diff #18759)

Used to be pulled by net.h, needed

28 ↗(On Diff #18759)

Still required.

This revision is now accepted and ready to land.Apr 14 2020, 12:55