@@ -12,6 +12,7 @@ import (
1212 "github.com/btcsuite/btcd/btcutil"
1313 "github.com/btcsuite/btcd/chaincfg"
1414 "github.com/btcsuite/btcd/chaincfg/chainhash"
15+ "github.com/btcsuite/btcd/txscript"
1516 "github.com/btcsuite/btcd/wire"
1617 "github.com/btcsuite/btclog/v2"
1718 "github.com/btcsuite/btcwallet/chain"
@@ -728,7 +729,14 @@ func (b *Batcher) PresignSweepsGroup(ctx context.Context, inputs []Input,
728729 if err != nil {
729730 return fmt .Errorf ("failed to get nextBlockFeeRate: %w" , err )
730731 }
731- infof ("PresignSweepsGroup: nextBlockFeeRate is %v" , nextBlockFeeRate )
732+ destPkscript , err := txscript .PayToAddrScript (destAddress )
733+ if err != nil {
734+ return fmt .Errorf ("txscript.PayToAddrScript failed: %w" , err )
735+ }
736+ infof ("PresignSweepsGroup: nextBlockFeeRate is %v, inputs: %v, " +
737+ "destAddress: %v, destPkscript: %x sweepTimeout: %d" ,
738+ nextBlockFeeRate , inputs , destAddress , destPkscript ,
739+ sweepTimeout )
732740
733741 sweeps := make ([]sweep , len (inputs ))
734742 for i , input := range inputs {
0 commit comments