Merge pull request #2325 from federicobond/remove-unused-rootkey

Remove unused LightningWallet.rootKey field
This commit is contained in:
Olaoluwa Osuntokun 2018-12-20 17:16:16 -08:00 committed by GitHub
commit bd0177ddc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,6 @@ import (
"github.com/btcsuite/btcd/txscript"
"github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btcutil"
"github.com/btcsuite/btcutil/hdkeychain"
"github.com/btcsuite/btcutil/txsort"
"github.com/davecgh/go-spew/spew"
"github.com/lightningnetwork/lnd/channeldb"
@ -254,10 +253,6 @@ type LightningWallet struct {
// double spend inputs across each other.
coinSelectMtx sync.RWMutex
// rootKey is the root HD key derived from a WalletController private
// key. This rootKey is used to derive all LN specific secrets.
rootKey *hdkeychain.ExtendedKey
// All messages to the wallet are to be sent across this channel.
msgChan chan interface{}