@@ -19,7 +19,6 @@ import (
1919 "github.com/btcsuite/btcd/btcutil/psbt"
2020 "github.com/btcsuite/btcd/chaincfg/chainhash"
2121 "github.com/btcsuite/btcd/wire"
22- "github.com/davecgh/go-spew/spew"
2322 "github.com/lightninglabs/lndclient"
2423 "github.com/lightninglabs/taproot-assets/address"
2524 "github.com/lightninglabs/taproot-assets/asset"
@@ -588,7 +587,7 @@ func (p *pendingAssetFunding) unlockAssetInputs(ctx context.Context,
588587 coinSelect tapfreighter.CoinSelector ) error {
589588
590589 log .Debugf ("unlocking asset inputs: %v" ,
591- spew .Sdump (p .lockedAssetInputs ))
590+ limitSpewer .Sdump (p .lockedAssetInputs ))
592591
593592 err := coinSelect .ReleaseCoins (ctx , p .lockedAssetInputs ... )
594593 if err != nil {
@@ -1002,7 +1001,8 @@ func (f *FundingController) anchorVPackets(fundedPkt *tapsend.FundedPsbt,
10021001func (f * FundingController ) signAndFinalizePsbt (ctx context.Context ,
10031002 pkt * psbt.Packet ) (* wire.MsgTx , error ) {
10041003
1005- log .Debugf ("Signing and finalizing PSBT w/ lnd: %v" , spew .Sdump (pkt ))
1004+ log .Debugf ("Signing and finalizing PSBT w/ lnd: %v" ,
1005+ limitSpewer .Sdump (pkt ))
10061006
10071007 // By default, the wallet won't try to finalize output it sees are watch
10081008 // only (like the asset input), so we'll have it sign ourselves first.
@@ -1011,7 +1011,7 @@ func (f *FundingController) signAndFinalizePsbt(ctx context.Context,
10111011 return nil , fmt .Errorf ("unable to sign PSBT: %w" , err )
10121012 }
10131013
1014- log .Debugf ("Signed PSBT: %v" , spew .Sdump (signedPkt ))
1014+ log .Debugf ("Signed PSBT: %v" , limitSpewer .Sdump (signedPkt ))
10151015
10161016 finalizedPkt , err := f .cfg .ChainWallet .SignAndFinalizePsbt (
10171017 ctx , signedPkt ,
@@ -1020,7 +1020,7 @@ func (f *FundingController) signAndFinalizePsbt(ctx context.Context,
10201020 return nil , fmt .Errorf ("unable to finalize PSBT: %w" , err )
10211021 }
10221022
1023- log .Debugf ("Finalized PSBT: %v" , spew .Sdump (signedPkt ))
1023+ log .Debugf ("Finalized PSBT: %v" , limitSpewer .Sdump (signedPkt ))
10241024
10251025 // Extra the tx manually, then perform some manual sanity checks to
10261026 // make sure things are ready for broadcast.
@@ -1123,7 +1123,8 @@ func (f *FundingController) completeChannelFunding(ctx context.Context,
11231123 // with lnd that we arrived at the proper TxOut.
11241124 fundingPsbt .UnsignedTx .TxOut [0 ].Value = int64 (fundingReq .ChanAmt )
11251125
1126- log .Debugf ("Funding PSBT pre funding: %s" , spew .Sdump (fundingPsbt ))
1126+ log .Debugf ("Funding PSBT pre funding: %s" ,
1127+ limitSpewer .Sdump (fundingPsbt ))
11271128
11281129 // With the PSBT template created, we'll now ask lnd to fund the PSBT.
11291130 // This'll add yet another output (lnd's change output) to the
@@ -1135,7 +1136,8 @@ func (f *FundingController) completeChannelFunding(ctx context.Context,
11351136 return nil , fmt .Errorf ("unable to fund PSBT: %w" , err )
11361137 }
11371138
1138- log .Infof ("Funding PSBT post funding: %s" , spew .Sdump (finalFundedPsbt ))
1139+ log .Infof ("Funding PSBT post funding: %s" ,
1140+ limitSpewer .Sdump (finalFundedPsbt ))
11391141
11401142 // If we fail at any step in the process, we want to make sure we
11411143 // unlock the inputs, so we'll add them to funding state now.
@@ -1178,7 +1180,7 @@ func (f *FundingController) completeChannelFunding(ctx context.Context,
11781180 }
11791181
11801182 log .Debugf ("Submitting finalized PSBT to lnd for verification: %s" ,
1181- spew .Sdump (finalFundedPsbt .Pkt ))
1183+ limitSpewer .Sdump (finalFundedPsbt .Pkt ))
11821184
11831185 // At this point, we're nearly done, we'll now present the final PSBT
11841186 // to lnd to verification. If this passes, then we're clear to
@@ -1737,7 +1739,7 @@ func (f *FundingController) chanFunder() {
17371739 }
17381740
17391741 log .Infof ("Returning funding desc: %v" ,
1740- spew .Sdump (fundingDesc ))
1742+ limitSpewer .Sdump (fundingDesc ))
17411743
17421744 req .resp <- lfn .Some (* fundingDesc )
17431745
0 commit comments