@@ -19,7 +19,6 @@ import (
19
19
"github.com/btcsuite/btcd/btcutil/psbt"
20
20
"github.com/btcsuite/btcd/chaincfg/chainhash"
21
21
"github.com/btcsuite/btcd/wire"
22
- "github.com/davecgh/go-spew/spew"
23
22
"github.com/lightninglabs/lndclient"
24
23
"github.com/lightninglabs/taproot-assets/address"
25
24
"github.com/lightninglabs/taproot-assets/asset"
@@ -588,7 +587,7 @@ func (p *pendingAssetFunding) unlockAssetInputs(ctx context.Context,
588
587
coinSelect tapfreighter.CoinSelector ) error {
589
588
590
589
log .Debugf ("unlocking asset inputs: %v" ,
591
- spew .Sdump (p .lockedAssetInputs ))
590
+ limitSpewer .Sdump (p .lockedAssetInputs ))
592
591
593
592
err := coinSelect .ReleaseCoins (ctx , p .lockedAssetInputs ... )
594
593
if err != nil {
@@ -1002,7 +1001,8 @@ func (f *FundingController) anchorVPackets(fundedPkt *tapsend.FundedPsbt,
1002
1001
func (f * FundingController ) signAndFinalizePsbt (ctx context.Context ,
1003
1002
pkt * psbt.Packet ) (* wire.MsgTx , error ) {
1004
1003
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 ))
1006
1006
1007
1007
// By default, the wallet won't try to finalize output it sees are watch
1008
1008
// only (like the asset input), so we'll have it sign ourselves first.
@@ -1011,7 +1011,7 @@ func (f *FundingController) signAndFinalizePsbt(ctx context.Context,
1011
1011
return nil , fmt .Errorf ("unable to sign PSBT: %w" , err )
1012
1012
}
1013
1013
1014
- log .Debugf ("Signed PSBT: %v" , spew .Sdump (signedPkt ))
1014
+ log .Debugf ("Signed PSBT: %v" , limitSpewer .Sdump (signedPkt ))
1015
1015
1016
1016
finalizedPkt , err := f .cfg .ChainWallet .SignAndFinalizePsbt (
1017
1017
ctx , signedPkt ,
@@ -1020,7 +1020,7 @@ func (f *FundingController) signAndFinalizePsbt(ctx context.Context,
1020
1020
return nil , fmt .Errorf ("unable to finalize PSBT: %w" , err )
1021
1021
}
1022
1022
1023
- log .Debugf ("Finalized PSBT: %v" , spew .Sdump (signedPkt ))
1023
+ log .Debugf ("Finalized PSBT: %v" , limitSpewer .Sdump (signedPkt ))
1024
1024
1025
1025
// Extra the tx manually, then perform some manual sanity checks to
1026
1026
// make sure things are ready for broadcast.
@@ -1123,7 +1123,8 @@ func (f *FundingController) completeChannelFunding(ctx context.Context,
1123
1123
// with lnd that we arrived at the proper TxOut.
1124
1124
fundingPsbt .UnsignedTx .TxOut [0 ].Value = int64 (fundingReq .ChanAmt )
1125
1125
1126
- log .Debugf ("Funding PSBT pre funding: %s" , spew .Sdump (fundingPsbt ))
1126
+ log .Debugf ("Funding PSBT pre funding: %s" ,
1127
+ limitSpewer .Sdump (fundingPsbt ))
1127
1128
1128
1129
// With the PSBT template created, we'll now ask lnd to fund the PSBT.
1129
1130
// This'll add yet another output (lnd's change output) to the
@@ -1135,7 +1136,8 @@ func (f *FundingController) completeChannelFunding(ctx context.Context,
1135
1136
return nil , fmt .Errorf ("unable to fund PSBT: %w" , err )
1136
1137
}
1137
1138
1138
- log .Infof ("Funding PSBT post funding: %s" , spew .Sdump (finalFundedPsbt ))
1139
+ log .Infof ("Funding PSBT post funding: %s" ,
1140
+ limitSpewer .Sdump (finalFundedPsbt ))
1139
1141
1140
1142
// If we fail at any step in the process, we want to make sure we
1141
1143
// unlock the inputs, so we'll add them to funding state now.
@@ -1178,7 +1180,7 @@ func (f *FundingController) completeChannelFunding(ctx context.Context,
1178
1180
}
1179
1181
1180
1182
log .Debugf ("Submitting finalized PSBT to lnd for verification: %s" ,
1181
- spew .Sdump (finalFundedPsbt .Pkt ))
1183
+ limitSpewer .Sdump (finalFundedPsbt .Pkt ))
1182
1184
1183
1185
// At this point, we're nearly done, we'll now present the final PSBT
1184
1186
// to lnd to verification. If this passes, then we're clear to
@@ -1737,7 +1739,7 @@ func (f *FundingController) chanFunder() {
1737
1739
}
1738
1740
1739
1741
log .Infof ("Returning funding desc: %v" ,
1740
- spew .Sdump (fundingDesc ))
1742
+ limitSpewer .Sdump (fundingDesc ))
1741
1743
1742
1744
req .resp <- lfn .Some (* fundingDesc )
1743
1745
0 commit comments