mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
lnwallet/btcwallet/config: add recovery window and bday
This commit is contained in:
parent
ae604061bf
commit
06a53aa5cc
1 changed files with 10 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue