[Wallet] Trivial cleanup of HD wallet changes #8443

pull jonasschnelli wants to merge 1 commits into bitcoin:master from jonasschnelli:2016/08/hd_fixes changing 1 files +1 −2
  1. jonasschnelli commented at 1:20 PM on August 1, 2016: contributor

    Trivial cleanup. Reported by @MarcoFalke and @dooglus.

  2. jonasschnelli added the label Refactoring on Aug 1, 2016
  3. jonasschnelli added the label Wallet on Aug 1, 2016
  4. MarcoFalke commented at 1:26 PM on August 1, 2016: member

    I think you can use func because the wallet seems a place where a lot refactoring is happening. So we don't have yo change it each time.

    Anyway, concept ACK

  5. in src/wallet/wallet.cpp:None in e3e706f715 outdated
    1199 | @@ -1200,7 +1200,7 @@ CPubKey CWallet::GenerateNewHDMasterKey()
    1200 |  
    1201 |          // write the key&metadata to the database
    1202 |          if (!AddKeyPubKey(key, pubkey))
    1203 | -            throw std::runtime_error("CWallet::GenerateNewKey(): AddKey failed");
    1204 | +            throw std::runtime_error("CWallet::GenerateNewHDMasterKey(): AddKey failed");
    


    paveljanik commented at 4:10 PM on August 1, 2016:

    AddKeyPubKey failed, not AddKey. And it can't "fail" at all right now 8)


    MarcoFalke commented at 4:18 PM on August 1, 2016:

    The goal was to keep this in case some refactoring makes it possible that it fails.

  6. jonasschnelli force-pushed on Aug 2, 2016
  7. jonasschnelli commented at 7:58 AM on August 2, 2016: contributor

    Fixed nits.

  8. in src/wallet/wallet.cpp:None in a81e77e67c outdated
    1199 | @@ -1200,7 +1200,7 @@ CPubKey CWallet::GenerateNewHDMasterKey()
    1200 |  
    1201 |          // write the key&metadata to the database
    1202 |          if (!AddKeyPubKey(key, pubkey))
    1203 | -            throw std::runtime_error("CWallet::GenerateNewKey(): AddKey failed");
    1204 | +            throw std::runtime_error("CWallet::"+std::string(__func__)+" AddKeyPubKey failed");
    


    paveljanik commented at 8:32 AM on August 2, 2016:

    : missing?

  9. jonasschnelli force-pushed on Aug 12, 2016
  10. jonasschnelli commented at 12:28 PM on August 12, 2016: contributor

    Fixed @paveljanik's nit.

  11. MarcoFalke commented at 4:27 PM on August 12, 2016: member

    utACK a575426

  12. MarcoFalke added the label Docs and Output on Aug 12, 2016
  13. MarcoFalke removed the label Refactoring on Aug 12, 2016
  14. MarcoFalke commented at 4:58 PM on August 18, 2016: member

    @laanwj Anything holding this back?

  15. [Wallet] Trivial cleanup of HD wallet changes 7e5d94df1f
  16. in src/wallet/wallet.cpp:None in a575426b8b outdated
    1199 | @@ -1200,7 +1200,7 @@ CPubKey CWallet::GenerateNewHDMasterKey()
    1200 |  
    1201 |          // write the key&metadata to the database
    1202 |          if (!AddKeyPubKey(key, pubkey))
    1203 | -            throw std::runtime_error("CWallet::GenerateNewKey(): AddKey failed");
    1204 | +            throw std::runtime_error("CWallet::"+std::string(__func__)+": AddKeyPubKey failed");
    


    laanwj commented at 10:22 AM on August 19, 2016:

    You shouldn't prefix CWallet:: here


    jonasschnelli commented at 2:23 PM on August 19, 2016:

    Removed the prefix.

  17. jonasschnelli force-pushed on Aug 19, 2016
  18. MarcoFalke commented at 3:45 PM on August 19, 2016: member

    utACK 7e5d94d

  19. jonasschnelli merged this on Aug 19, 2016
  20. jonasschnelli closed this on Aug 19, 2016

  21. jonasschnelli referenced this in commit 56ac046960 on Aug 19, 2016
  22. luke-jr referenced this in commit 464dedd6ab on Sep 21, 2016
  23. MarcoFalke 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: 2026-04-17 09:15 UTC

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