RPC: "setaccount" creates new address #1996

issue Nicolai-s opened this issue on November 9, 2012
  1. Nicolai-s commented at 7:28 PM on November 9, 2012: none

    getnewaddress AccountA => 1AddressAxxxxxxxxxxx

    setaccount 1AddressAxxxxxxxxxxx AccountB =>

    getaddressesbyaccount AccountA => 1AddressBxxxxxxxxxxx

    Wouldn't it be more logical for "getaddressesbyaccount AccountA" to return "[ ]" ? However, "setaccount" create a new key to AccountA, if 1AddressAxxxxxxxxxxx (the moved address) is the only key in AccountA

    Why perform the check at line 191-197, instead of just "deleting" AccountA ?


    src/rpcwallet.cpp:196 ( https://github.com/bitcoin/bitcoin/blob/master/src/rpcwallet.cpp#L196 )

    (I'm new to github, so please tell me if I did something wrong :-)

  2. laanwj commented at 5:22 AM on December 13, 2012: member

    Duplicate of #1794, accounts are never deleted, this in on purpose

  3. laanwj closed this on Dec 13, 2012

  4. HashUnlimited referenced this in commit ea06a9dc85 on Mar 21, 2018
  5. MarcoFalke locked this on Sep 8, 2021
Contributors

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: 2026-04-21 21:16 UTC

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