HomePhabricator

Fix bitcoin-qt RPC when -server is used

Description

Fix bitcoin-qt RPC when -server is used

Summary:
The bug was introduced in D7990. The node name usually designates a
node context, but not in this case.

Test Plan:

ninja all check-all

Without this diff, returns a Node context not found error:

./src/qt/bitcoin-qt -server
./src/bitcoin-cli getnetworkinfo

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Subscribers: jasonbcox

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

Details

Provenance
FabienAuthored on Dec 10 2020, 23:15
FabienPushed on Dec 11 2020, 00:12
Reviewer
Restricted Project
Differential Revision
D8652: Fix bitcoin-qt RPC when -server is used
Parents
rABCe27d9b655a1e: refactor: Fix unreachable code in init arg checks (part 2)
Branches
Unknown
Tags
Unknown