diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-05-30 19:38:48 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-05-30 19:39:17 +0200 |
commit | c4cc8d9930ecb926d913075dd2aa2df65056a8ed (patch) | |
tree | 85a328379520bd3627f0b7ddfca004dad177f44e /src/wallet/rpcwallet.cpp | |
parent | fd96d54f39cf4f66890e0bb40812d47e69728cec (diff) | |
parent | 4b62bdf5136c174621509bf7866fbd89b61cc66a (diff) | |
download | bitcoin-c4cc8d9930ecb926d913075dd2aa2df65056a8ed.tar.xz |
Merge #13252: Wallet: Refactor ReserveKeyFromKeyPool for safety
4b62bdf5136c174621509bf7866fbd89b61cc66a Wallet: Refactor ReserveKeyFromKeyPool for safety (Ben Woosley)
Pull request description:
ReserveKeyFromKeyPool's previous behaviour is to set nIndex to -1 if the keypool is
empty, OR throw an exception for technical failures. Instead, we now return false
if the keypool is empty, true if the operation succeeded.
This is to make failure more easily detectable by calling code.
Tree-SHA512: 753f057ad13bd4c28d121f426bf0967ed72b827d97fb24582f9326ec60072abc5482e3db69ccada7c5fc66de9957fc59098432dd223fc4116991cab44c6d7aef
Diffstat (limited to 'src/wallet/rpcwallet.cpp')
0 files changed, 0 insertions, 0 deletions