@@ -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"
@@ -729,7 +730,14 @@ func (b *Batcher) PresignSweepsGroup(ctx context.Context, inputs []Input,
729730 if err != nil {
730731 return fmt .Errorf ("failed to get nextBlockFeeRate: %w" , err )
731732 }
732- infof ("PresignSweepsGroup: nextBlockFeeRate is %v" , nextBlockFeeRate )
733+ destPkscript , err := txscript .PayToAddrScript (destAddress )
734+ if err != nil {
735+ return fmt .Errorf ("txscript.PayToAddrScript failed: %w" , err )
736+ }
737+ infof ("PresignSweepsGroup: nextBlockFeeRate is %v, inputs: %v, " +
738+ "destAddress: %v, destPkscript: %x sweepTimeout: %d" ,
739+ nextBlockFeeRate , inputs , destAddress , destPkscript ,
740+ sweepTimeout )
733741
734742 sweeps := make ([]sweep , len (inputs ))
735743 for i , input := range inputs {
0 commit comments