wallet: Always use the DB backed bip32_max_index

We were loading it on startup and updating as we went. Removing
caching to reduce chances of becoming desynchronized.
This commit is contained in:
Christian Decker
2017-06-03 15:30:42 +02:00
committed by Rusty Russell
parent 257ecf6222
commit 7e0b9bd1ab
3 changed files with 11 additions and 11 deletions

View File

@@ -40,7 +40,6 @@ struct lightningd {
/* Public base for bip32 keys, and max we've ever used. */
struct ext_key *bip32_base;
u32 bip32_max_index;
/* Our bitcoind context. */
struct bitcoind *bitcoind;