mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
sweepbatcher: make sure dest pkscript is filled
This commit is contained in:
parent
8c784ef761
commit
8a07107811
1 changed files with 4 additions and 0 deletions
|
|
@ -1285,6 +1285,10 @@ func constructUnsignedTx(sweeps []sweep, address btcutil.Address,
|
|||
return nil, 0, 0, 0, fmt.Errorf("txscript.PayToAddrScript "+
|
||||
"failed: %w", err)
|
||||
}
|
||||
if len(batchPkScript) == 0 {
|
||||
return nil, 0, 0, 0, fmt.Errorf("txscript.PayToAddrScript " +
|
||||
"returned an empty pkScript")
|
||||
}
|
||||
|
||||
// Add the output to weight estimates.
|
||||
err = sweeppkg.AddOutputEstimate(&weightEstimate, address)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue