No longer ever reuse keypool indexes
commit1fc8c3de0cff2971cc1f9903bfc3d03a982f2fab
authorMatt Corallo <git@bluematt.me>
Tue, 11 Jul 2017 16:15:02 +0000 (11 12:15 -0400)
committerMatt Corallo <git@bluematt.me>
Mon, 17 Jul 2017 16:12:48 +0000 (17 12:12 -0400)
tree90ef1ee9bbdcc8f90231635a71b63b9234e2a7d7
parent0b019357ff09e7a522307fc271d6b60562a7b890
No longer ever reuse keypool indexes

This fixes an issue where you could reserve a keypool entry, then
top up the keypool, writing out a new key at the given index, then
return they key from the pool. This isnt likely to cause issues,
but given there is no reason to ever re-use keypool indexes
(they're 64 bits...), best to avoid it alltogether.
src/wallet/wallet.cpp
src/wallet/wallet.h