Skip to content

Commit 80ed2f6

Browse files
committed
Relax check to skip tracking duplicate descriptors by outpoint
Previously, we would only skip if the (potentially replayed) descriptors would be identical. Here, we instead simply check that they spend the same outpoint, allowing for other fields to differ.
1 parent c03c8a4 commit 80ed2f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/util/sweep.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ where
424424
if state_lock
425425
.outputs
426426
.iter()
427-
.find(|o| o.descriptor == output_info.descriptor)
427+
.find(|o| o.descriptor.outpoint() == output_info.descriptor.outpoint())
428428
.is_some()
429429
{
430430
continue;

0 commit comments

Comments
 (0)