Skip to content

Commit 72caafa

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 64a2417 commit 72caafa

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

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

0 commit comments

Comments
 (0)