HomePhabricator

[backport#13756] Wallet/rpc: add 'avoid_reuse' option to RPC commands

Description

[backport#13756] Wallet/rpc: add 'avoid_reuse' option to RPC commands

Summary:
createwallet, getbalance, getwalletinfo, listunspent, sendtoaddress

rpc/wallet: listunspent include reused flag and show reused utxos by default

https://github.com/bitcoin/bitcoin/pull/13756/commits/0bdfbd34cf4015de87741ff549db35e5064f4e16


Depends on D6464

Partial backport of Core PR13756

Test Plan:

ninja check
./src/bitcoind/bitcoind -daemon -regtest

run bitcoin-cli help for the commands above check if everything is in order

the proper functional test for this feature is in the next commit D6466

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
Karl-Johan Alm <karljohan-alm@garage.co.jp>Authored on Sep 11 2018, 06:53
majcostaCommitted on Jun 9 2020, 17:56
majcostaPushed on Jun 9 2020, 17:56
Reviewer
Restricted Project
Differential Revision
D6465: [backport#13756] Wallet/rpc: add 'avoid_reuse' option to RPC commands
Parents
rABC3f601d7850a5: [backport#13756] wallet/rpc: add setwalletflag RPC and MUTABLE_WALLET_FLAGS
Branches
Unknown
Tags
Unknown