@@ -12,6 +12,7 @@ import (
12
12
"github.com/btcsuite/btcd/btcutil"
13
13
"github.com/btcsuite/btcd/chaincfg"
14
14
"github.com/btcsuite/btcd/chaincfg/chainhash"
15
+ "github.com/btcsuite/btcd/txscript"
15
16
"github.com/btcsuite/btcd/wire"
16
17
"github.com/btcsuite/btclog/v2"
17
18
"github.com/btcsuite/btcwallet/chain"
@@ -729,7 +730,14 @@ func (b *Batcher) PresignSweepsGroup(ctx context.Context, inputs []Input,
729
730
if err != nil {
730
731
return fmt .Errorf ("failed to get nextBlockFeeRate: %w" , err )
731
732
}
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 )
733
741
734
742
sweeps := make ([]sweep , len (inputs ))
735
743
for i , input := range inputs {
0 commit comments