mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-27 09:12:15 +02:00
lnd+lnwallet: extract default wallet password vars into lnwallet
This commit is contained in:
parent
b32e0ced45
commit
1a47d182d3
4
lnd.go
4
lnd.go
@ -196,8 +196,8 @@ func lndMain() error {
|
|||||||
proxyOpts := []grpc.DialOption{grpc.WithTransportCredentials(cCreds)}
|
proxyOpts := []grpc.DialOption{grpc.WithTransportCredentials(cCreds)}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
privateWalletPw = []byte("hello")
|
privateWalletPw = lnwallet.DefaultPrivatePassphrase
|
||||||
publicWalletPw = []byte("public")
|
publicWalletPw = lnwallet.DefaultPublicPassphrase
|
||||||
birthday time.Time
|
birthday time.Time
|
||||||
recoveryWindow uint32
|
recoveryWindow uint32
|
||||||
)
|
)
|
||||||
|
@ -11,10 +11,6 @@ import (
|
|||||||
"github.com/roasbeef/btcutil"
|
"github.com/roasbeef/btcutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ErrNotMine is an error denoting that a WalletController instance is unable
|
|
||||||
// to spend a specified output.
|
|
||||||
var ErrNotMine = errors.New("the passed output doesn't belong to the wallet")
|
|
||||||
|
|
||||||
// AddressType is an enum-like type which denotes the possible address types
|
// AddressType is an enum-like type which denotes the possible address types
|
||||||
// WalletController supports.
|
// WalletController supports.
|
||||||
type AddressType uint8
|
type AddressType uint8
|
||||||
@ -32,10 +28,24 @@ const (
|
|||||||
UnknownAddressType
|
UnknownAddressType
|
||||||
)
|
)
|
||||||
|
|
||||||
// ErrDoubleSpend is returned from PublishTransaction in case the
|
var (
|
||||||
// tx being published is spending an output spent by a conflicting
|
// DefaultPublicPassphrase is the default public passphrase used for the
|
||||||
// transaction.
|
// wallet.
|
||||||
var ErrDoubleSpend = errors.New("Transaction rejected: output already spent")
|
DefaultPublicPassphrase = []byte("public")
|
||||||
|
|
||||||
|
// DefaultPrivatePassphrase is the default private passphrase used for
|
||||||
|
// the wallet.
|
||||||
|
DefaultPrivatePassphrase = []byte("hello")
|
||||||
|
|
||||||
|
// ErrDoubleSpend is returned from PublishTransaction in case the
|
||||||
|
// tx being published is spending an output spent by a conflicting
|
||||||
|
// transaction.
|
||||||
|
ErrDoubleSpend = errors.New("Transaction rejected: output already spent")
|
||||||
|
|
||||||
|
// ErrNotMine is an error denoting that a WalletController instance is
|
||||||
|
// unable to spend a specified output.
|
||||||
|
ErrNotMine = errors.New("the passed output doesn't belong to the wallet")
|
||||||
|
)
|
||||||
|
|
||||||
// Utxo is an unspent output denoted by its outpoint, and output value of the
|
// Utxo is an unspent output denoted by its outpoint, and output value of the
|
||||||
// original output.
|
// original output.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user