[wallet] keypool mark-used and topup
commit095142d1f93f39ad2b88dbe8d40140223a1b3900
authorJohn Newbery <john@johnnewbery.com>
Tue, 18 Jul 2017 19:49:56 +0000 (18 15:49 -0400)
committerJohn Newbery <john@johnnewbery.com>
Thu, 10 Aug 2017 17:44:02 +0000 (10 13:44 -0400)
tree792b20cb2673c7ebc29e2ef6752cc9ad353d5f82
parentc25d90f125d69e33688288eff439eb7be75012e9
[wallet] keypool mark-used and topup

This commit adds basic keypool mark-used and topup:

- try to topup the keypool on initial load
- if a key in the keypool is used, mark all keys before that as used and
try to top up
src/wallet/wallet.cpp
src/wallet/wallet.h
test/functional/wallet-hd.py