HomePhabricator

refactor: Combine GetWalletForJSONRPCRequest and EnsureWalletIsAvailable…

Description

refactor: Combine GetWalletForJSONRPCRequest and EnsureWalletIsAvailable functions

Summary:
This simplifies control flow and also helps get rid of the ::vpwallets
variable, because EnsureWalletIsAvailable doesn't have access to the request
context.

This is a backport of core#19100

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

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

Details

Provenance
Russell Yanofsky <russ@yanofsky.org>Authored on May 28 2020, 15:31
PiRKCommitted on Apr 29 2021, 11:54
PiRKPushed on Apr 29 2021, 11:54
Reviewer
Restricted Project
Differential Revision
D9452: refactor: Combine GetWalletForJSONRPCRequest and EnsureWalletIsAvailable functions
Parents
rABCc32043f396be: [Cashtab] Use wallet.state for balance on Send screen
Branches
Unknown
Tags
Unknown