Empact
commented at 2:08 AM on May 17, 2018:
member
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.
fanquake added the label Refactoring on May 17, 2018
Return bool rather than throw, because this is a common failure mode, so its handling is control flow
Extract use_split_keypool bool to make "keypool entry misclassified" case more straightforward
throw rather than assert on keypool.vchPubKey.IsValid(), to simplify docs and create an opportunity for handling / testability
Empact force-pushed on May 17, 2018
Empact force-pushed on May 17, 2018
Empact force-pushed on May 17, 2018
Empact force-pushed on May 17, 2018
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.
4b62bdf513
Empact force-pushed on May 17, 2018
jonasschnelli
commented at 8:03 AM on May 17, 2018:
contributor
utACK4b62bdf5136c174621509bf7866fbd89b61cc66a
achow101
commented at 3:19 PM on May 17, 2018:
member
utACK4b62bdf5136c174621509bf7866fbd89b61cc66a
promag
commented at 3:53 PM on May 17, 2018:
member
utACK4b62bdf.
MarcoFalke
commented at 4:12 PM on May 17, 2018:
member
utACK4b62bdf5136c174621509bf7866fbd89b61cc66a
laanwj merged this on May 30, 2018
laanwj closed this on May 30, 2018
laanwj referenced this in commit c4cc8d9930 on May 30, 2018
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-05-19 06:54 UTC