HomePhabricator

[wallet] [rpc] Add loadwallet RPC

Description

[wallet] [rpc] Add loadwallet RPC

Summary:
Partial backport of core PR10740

Commit 5d15260 Add loadwallet RPC
https://github.com/bitcoin/bitcoin/pull/10740/commits/5d152601e940bd5f4043253b216a645679aff75d

The new `loadwallet` RPC method allows an existing wallet to be loaded
dynamically at runtime.

`unloadwallet` and `createwallet` are not implemented. Notably,
`loadwallet` can only be used to load existing wallets, not to create a
new wallet.

Commit a46aeb6 Test loadwallet
https://github.com/bitcoin/bitcoin/pull/10740/commits/a46aeb690141f8457cf7d19f5b4b84f97ce410c8

Add testcases to wallet_multiwallet.py to test the new `loadwallet` RPC
method.

Commit cd53981 Add release notes for loadwallet RPC.
https://github.com/bitcoin/bitcoin/pull/10740/commits/cd53981b3d0d4697ed46c7bedbf10f464aca4ccc

Completes T459

Depends on D3635

Test Plan:

make check
./test/functional/test_runner.py wallet_multiwallet

Reviewers: #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

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

Details

Provenance
John Newbery <john@johnnewbery.com>Authored on Apr 18 2018, 20:01
FabienCommitted on Jul 20 2019, 06:20
FabienPushed on Jul 22 2019, 06:33
Reviewer
Restricted Project
Differential Revision
D3636: [wallet] [rpc] Add loadwallet RPC
Parents
rSTAGINGc2a03e1e9547: [3 of 5] Move CDiskBlockPos from chain to flatfile.
Branches
Unknown
Tags
Unknown