Skip to content

Commit 0fafa55

Browse files
committed
sweepbatcher: fix a bug in dest address selection
For presigned possible remaining groups, the destination address of the current batch was used instead of the destination address of an expected future batch.
1 parent 32cc090 commit 0fafa55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sweepbatcher/presigned.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ func (b *batch) presign(ctx context.Context, newSweeps []*sweep) error {
246246

247247
// Cache the destination address.
248248
destAddr, err := getPresignedSweepsDestAddr(
249-
ctx, b.cfg.presignedHelper, b.primarySweepID,
249+
ctx, b.cfg.presignedHelper, primarySweepID,
250250
b.cfg.chainParams,
251251
)
252252
if err != nil {

0 commit comments

Comments
 (0)