Skip to content

Commit e03ba71

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. TODO: reproduce in unit test "purged". For this, each swap should have a separate destination address.
1 parent 54a6275 commit e03ba71

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
@@ -248,7 +248,7 @@ func (b *batch) presign(ctx context.Context, newSweeps []*sweep) error {
248248

249249
// Cache the destination address.
250250
destAddr, err := getPresignedSweepsDestAddr(
251-
ctx, b.cfg.presignedHelper, b.primarySweepID,
251+
ctx, b.cfg.presignedHelper, primarySweepID,
252252
b.cfg.chainParams,
253253
)
254254
if err != nil {

0 commit comments

Comments
 (0)