mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
lnwallet: don't attach the rpcclient to the lnwallet logging instance
We no longer attach the RPC client to the lnwallet logging instance as it can generate a ton of spam in trace mode as it’ll dump the entire hex encoded blocks, transactions, etc.
This commit is contained in:
parent
1ce6c4668e
commit
73421caecc
@ -2,7 +2,6 @@ package lnwallet
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/btcsuite/btclog"
|
"github.com/btcsuite/btclog"
|
||||||
"github.com/roasbeef/btcd/rpcclient"
|
|
||||||
"github.com/roasbeef/btcwallet/chain"
|
"github.com/roasbeef/btcwallet/chain"
|
||||||
btcwallet "github.com/roasbeef/btcwallet/wallet"
|
btcwallet "github.com/roasbeef/btcwallet/wallet"
|
||||||
"github.com/roasbeef/btcwallet/wtxmgr"
|
"github.com/roasbeef/btcwallet/wtxmgr"
|
||||||
@ -32,7 +31,6 @@ func UseLogger(logger btclog.Logger) {
|
|||||||
|
|
||||||
btcwallet.UseLogger(logger)
|
btcwallet.UseLogger(logger)
|
||||||
wtxmgr.UseLogger(logger)
|
wtxmgr.UseLogger(logger)
|
||||||
rpcclient.UseLogger(logger)
|
|
||||||
chain.UseLogger(logger)
|
chain.UseLogger(logger)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -481,7 +481,7 @@ func (l *LightningWallet) handleFundingReserveRequest(req *initFundingReserveMsg
|
|||||||
|
|
||||||
// If the funding request is for a different chain than the one the
|
// If the funding request is for a different chain than the one the
|
||||||
// wallet is aware of, then we'll reject the request.
|
// wallet is aware of, then we'll reject the request.
|
||||||
if *l.Cfg.NetParams.GenesisHash != *req.chainHash {
|
if !bytes.Equal(l.Cfg.NetParams.GenesisHash[:], req.chainHash[:]) {
|
||||||
req.err <- fmt.Errorf("unable to create channel reservation "+
|
req.err <- fmt.Errorf("unable to create channel reservation "+
|
||||||
"for chain=%v, wallet is on chain=%v",
|
"for chain=%v, wallet is on chain=%v",
|
||||||
req.chainHash, l.Cfg.NetParams.GenesisHash)
|
req.chainHash, l.Cfg.NetParams.GenesisHash)
|
||||||
|
Loading…
Reference in New Issue
Block a user