@@ -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/taproot-assets/address"
2423 "github.com/lightninglabs/taproot-assets/asset"
2524 "github.com/lightninglabs/taproot-assets/commitment"
@@ -522,7 +521,7 @@ func (p *pendingAssetFunding) unlockAssetInputs(ctx context.Context,
522521 coinSelect tapfreighter.CoinSelector ) error {
523522
524523 log .Debugf ("unlocking asset inputs: %v" ,
525- spew .Sdump (p .lockedAssetInputs ))
524+ limitSpewer .Sdump (p .lockedAssetInputs ))
526525
527526 err := coinSelect .ReleaseCoins (ctx , p .lockedAssetInputs ... )
528527 if err != nil {
@@ -936,7 +935,8 @@ func (f *FundingController) anchorVPackets(fundedPkt *tapsend.FundedPsbt,
936935func (f * FundingController ) signAndFinalizePsbt (ctx context.Context ,
937936 pkt * psbt.Packet ) (* wire.MsgTx , error ) {
938937
939- log .Debugf ("Signing and finalizing PSBT w/ lnd: %v" , spew .Sdump (pkt ))
938+ log .Debugf ("Signing and finalizing PSBT w/ lnd: %v" ,
939+ limitSpewer .Sdump (pkt ))
940940
941941 // By default, the wallet won't try to finalize output it sees are watch
942942 // only (like the asset input), so we'll have it sign ourselves first.
@@ -945,7 +945,7 @@ func (f *FundingController) signAndFinalizePsbt(ctx context.Context,
945945 return nil , fmt .Errorf ("unable to sign PSBT: %w" , err )
946946 }
947947
948- log .Debugf ("Signed PSBT: %v" , spew .Sdump (signedPkt ))
948+ log .Debugf ("Signed PSBT: %v" , limitSpewer .Sdump (signedPkt ))
949949
950950 finalizedPkt , err := f .cfg .ChainWallet .SignAndFinalizePsbt (
951951 ctx , signedPkt ,
@@ -954,7 +954,7 @@ func (f *FundingController) signAndFinalizePsbt(ctx context.Context,
954954 return nil , fmt .Errorf ("unable to finalize PSBT: %w" , err )
955955 }
956956
957- log .Debugf ("Finalized PSBT: %v" , spew .Sdump (signedPkt ))
957+ log .Debugf ("Finalized PSBT: %v" , limitSpewer .Sdump (signedPkt ))
958958
959959 // Extra the tx manually, then perform some manual sanity checks to
960960 // make sure things are ready for broadcast.
@@ -1056,7 +1056,8 @@ func (f *FundingController) completeChannelFunding(ctx context.Context,
10561056 // with lnd that we arrived at the proper TxOut.
10571057 fundingPsbt .UnsignedTx .TxOut [0 ].Value = int64 (fundingReq .ChanAmt )
10581058
1059- log .Debugf ("Funding PSBT pre funding: %s" , spew .Sdump (fundingPsbt ))
1059+ log .Debugf ("Funding PSBT pre funding: %s" ,
1060+ limitSpewer .Sdump (fundingPsbt ))
10601061
10611062 // With the PSBT template created, we'll now ask lnd to fund the PSBT.
10621063 // This'll add yet another output (lnd's change output) to the
@@ -1068,7 +1069,8 @@ func (f *FundingController) completeChannelFunding(ctx context.Context,
10681069 return nil , fmt .Errorf ("unable to fund PSBT: %w" , err )
10691070 }
10701071
1071- log .Infof ("Funding PSBT post funding: %s" , spew .Sdump (finalFundedPsbt ))
1072+ log .Infof ("Funding PSBT post funding: %s" ,
1073+ limitSpewer .Sdump (finalFundedPsbt ))
10721074
10731075 // If we fail at any step in the process, we want to make sure we
10741076 // unlock the inputs, so we'll add them to funding state now.
@@ -1111,7 +1113,7 @@ func (f *FundingController) completeChannelFunding(ctx context.Context,
11111113 }
11121114
11131115 log .Debugf ("Submitting finalized PSBT to lnd for verification: %s" ,
1114- spew .Sdump (finalFundedPsbt .Pkt ))
1116+ limitSpewer .Sdump (finalFundedPsbt .Pkt ))
11151117
11161118 // At this point, we're nearly done, we'll now present the final PSBT
11171119 // to lnd to verification. If this passes, then we're clear to
@@ -1650,7 +1652,7 @@ func (f *FundingController) chanFunder() {
16501652 }
16511653
16521654 log .Infof ("Returning funding desc: %v" ,
1653- spew .Sdump (fundingDesc ))
1655+ limitSpewer .Sdump (fundingDesc ))
16541656
16551657 req .resp <- lfn .Some (* fundingDesc )
16561658
0 commit comments