diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2018-05-16 18:56:41 -0700 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2018-05-16 22:58:02 -0700 |
commit | 4b62bdf5136c174621509bf7866fbd89b61cc66a (patch) | |
tree | 01a82019101ea3506ca91ad50026484fe1654102 /src/consensus | |
parent | 4cfe17c3382ba750131cdc8703b2978132822070 (diff) |
Wallet: Refactor ReserveKeyFromKeyPool for safety
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.
Diffstat (limited to 'src/consensus')
0 files changed, 0 insertions, 0 deletions