From 06a53aa5cc18fe6bc267a132a2501582b738a78f Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Mon, 26 Mar 2018 14:14:11 -0700 Subject: [PATCH] lnwallet/btcwallet/config: add recovery window and bday --- lnwallet/btcwallet/config.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lnwallet/btcwallet/config.go b/lnwallet/btcwallet/config.go index 6096c7742..b0ac59021 100644 --- a/lnwallet/btcwallet/config.go +++ b/lnwallet/btcwallet/config.go @@ -2,6 +2,7 @@ package btcwallet import ( "path/filepath" + "time" "github.com/lightningnetwork/lnd/lnwallet" "github.com/roasbeef/btcd/chaincfg" @@ -63,6 +64,15 @@ type Config struct { // unspecified, a new seed will be generated. HdSeed []byte + // Birthday specifies the time at which this wallet was initially + // created. It is used to bound rescans for used addresses. + Birthday time.Time + + // RecoveryWindow specifies the address look-ahead for which to scan + // when restoring a wallet. The recovery window will apply to all + // default BIP44 derivation paths. + RecoveryWindow uint32 + // ChainSource is the primary chain interface. This is used to operate // the wallet and do things such as rescanning, sending transactions, // notifications for received funds, etc.