What changed, and why it matters
This commit changes a single value in a test mock file from false to true. It only affects test code, not the real LND software that users run. There is no security issue in production code here.
No security action required. Treat as a normal test-fix commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch modifies sweep/mock_test.go, specifically the MockAuxSweeper.DeriveSweepAddr method. It flips the IsExtra field of a returned AuxSweepOutput from false to true. This is a test-only mock correction and does not alter any production sweep logic, wallet behavior, or network-facing code.
Changed components
sweep/mock_test.goMockAuxSweeper test mockInspect captured patch +1 / −1
diff --git a/sweep/mock_test.go b/sweep/mock_test.go
index 9312b7e..e6e254e 100644
--- a/sweep/mock_test.go
+++ b/sweep/mock_test.go
@@ -338,7 +338,7 @@ func (m *MockAuxSweeper) DeriveSweepAddr(_ []input.Input,
Value: 123,
PkScript: changePkScript.DeliveryAddress,
},
- IsExtra: false,
+ IsExtra: true,
InternalKey: fn.None[keychain.KeyDescriptor](),
})
}
Why this scored 14/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.