Skip to content

Commit e2fb134

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 1813952 commit e2fb134

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)