Add optional wallet=filename arguments to wallet RPCs #10661

pull ryanofsky wants to merge 1 commits into bitcoin:master from ryanofsky:pr/multiopt changing 6 files +310 −224
  1. ryanofsky commented at 7:35 pm on June 23, 2017: member

    This change adds an optional wallet=filename argument to RPCs that access the wallet so they can operate on wallets other than the default wallet.

    This does essentially the same thing as #10653, except it adds support for new wallet parameters explicitly in individual RPC methods instead of implicitly at the RPC dispatching layer.

    Example usage:

    bitcoind -regtest -wallet=w1.dat -wallet=w2.dat
    bitcoin-cli -regtest -named getwalletinfo wallet=w1.dat
    bitcoin-cli -regtest -named getwalletinfo wallet=w2.dat
    bitcoin-cli -regtest -named getbalance wallet=w2.dat
  2. ryanofsky renamed this:
    Add multiwallet support to wallet RPCs
    Add optional wallet=filename arguments to wallet RPCs
    on Jun 23, 2017
  3. fanquake added the label RPC/REST/ZMQ on Jun 24, 2017
  4. laanwj commented at 11:28 am on June 24, 2017: member
    Same comment as on #10653 (comment)****
  5. Add multiwallet support to wallet RPCs
    This change adds an optional wallet=filename argument to RPCs that access the
    wallet so they can operate on wallets other than the default wallet.
    
    Example usage:
    
        bitcoind -regtest -wallet=w1.dat -wallet=w2.dat
        bitcoin-cli -regtest -named getwalletinfo wallet=w1.dat
        bitcoin-cli -regtest -named getwalletinfo wallet=w2.dat
        bitcoin-cli -regtest -named getbalance wallet=w2.dat
    baa8e4c189
  6. ryanofsky force-pushed on Jul 5, 2017
  7. ryanofsky commented at 7:26 pm on July 6, 2017: member

    Closing in favor of #10650 (https://botbot.me/freenode/bitcoin-core-dev/msg/88240462/)

    There’s also a newer version of this PR which adds a test & makes it an error not to specify a wallet when more than one is loaded: https://github.com/bitcoin/bitcoin/compare/master...ryanofsky:pr/multiopt

  8. ryanofsky closed this on Jul 6, 2017

  9. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-19 09:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me