lnwallet/btcwallet/config: add recovery window and bday
This commit is contained in:
parent
ae604061bf
commit
06a53aa5cc
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user