aboutsummaryrefslogtreecommitdiff
path: root/src/pow.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2019-11-20 12:42:10 -0500
committerAndrew Chow <achow101-github@achow101.com>2019-11-22 23:45:34 -0500
commitea50e34b287e0da0806c1116bb55ade730e8ff6c (patch)
tree5d2911268e01609efcbc373b4dc1fea962ada94c /src/pow.h
parentbb2c8ce23c9d7ba8d0e5538243e07218443c85b4 (diff)
keypool: Move opportunistic TopUps from LegacyScriptPubKeyMan to CWallet and ReserveDestination
An opportunistic TopUp is moved from LegacyScriptPubKeyMan::GetNewDestination to CWallet::GetNewDestination. Another opportunistic TopUp is moved from LegacyScriptPubKeyMan::ReserveKeyFromKeyPool (called by LegacyScriptPubKeyMan::GetReservedDestination) to ReserveDestination::GetReservedDestination. Moving opportunistic TopUps ensures that ScriptPubKeyMans will always be topped up before requesting Destinations from them as we cannot always rely on future ScriptPubKeyMan implementaions topping up internally. As such, it is also unnecessary to keep the TopUp calls in the LegacyScriptPubKeyMan functions so they are moved. This does not change behavior as TopUp calls are moved up the call stack.
Diffstat (limited to 'src/pow.h')
0 files changed, 0 insertions, 0 deletions