lnwallet/btcwallet/config: add recovery window and bday

This commit is contained in:
Conner Fromknecht 2018-03-26 14:14:11 -07:00
parent ae604061bf
commit 06a53aa5cc
No known key found for this signature in database
GPG key ID: 39DE78FBE6ACB0EF

View file

@ -2,6 +2,7 @@ package btcwallet
import ( import (
"path/filepath" "path/filepath"
"time"
"github.com/lightningnetwork/lnd/lnwallet" "github.com/lightningnetwork/lnd/lnwallet"
"github.com/roasbeef/btcd/chaincfg" "github.com/roasbeef/btcd/chaincfg"
@ -63,6 +64,15 @@ type Config struct {
// unspecified, a new seed will be generated. // unspecified, a new seed will be generated.
HdSeed []byte 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 // ChainSource is the primary chain interface. This is used to operate
// the wallet and do things such as rescanning, sending transactions, // the wallet and do things such as rescanning, sending transactions,
// notifications for received funds, etc. // notifications for received funds, etc.