Skip to content

lnsweep: simplify maybe_reveal_preimage_for_htlc#10442

Merged
SomberNight merged 2 commits into
spesmilo:masterfrom
SomberNight:202601_lnworker_is_preimage_public
Feb 25, 2026
Merged

lnsweep: simplify maybe_reveal_preimage_for_htlc#10442
SomberNight merged 2 commits into
spesmilo:masterfrom
SomberNight:202601_lnworker_is_preimage_public

simplify prev

10274c1
Select commit
Loading
Failed to load commit list.
Cirrus CI / linter: Flake8 Non-Mandatory completed Feb 24, 2026 in 1m 4s

Task Summary

Instruction flake8 failed in 00:35

Details

✅ 00:21 clone
✅ 00:01 pip
✅ 00:02 install
❌ 00:35 flake8

17    E116 unexpected indentation (comment)
3     E117 over-indented
6     E121 continuation line under-indented for hanging indent
1641  E122 continuation line missing indentation or outdented
10    E123 closing bracket does not match indentation of opening bracket's line
4     E124 closing bracket does not match visual indentation
7     E125 continuation line with same indent as next logical line
51    E126 continuation line over-indented for hanging indent
60    E127 continuation line over-indented for visual indent
56    E128 continuation line under-indented for visual indent
63    E131 continuation line unaligned for hanging indent
30    E201 whitespace after '{'
8     E202 whitespace before '}'
54    E203 whitespace before ':'
1     E211 whitespace before '['
108   E221 multiple spaces before operator
44    E222 multiple spaces after operator
124   E225 missing whitespace around operator
676   E226 missing whitespace around arithmetic operator
8     E227 missing whitespace around bitwise or shift operator
70    E228 missing whitespace around modulo operator
248   E231 missing whitespace after ','
330   E241 multiple spaces after ','
122   E251 unexpected spaces around keyword / parameter equals
9     E252 missing whitespace around parameter equals
124   E261 at least two spaces before inline comment
23    E262 inline comment should start with '# '
217   E265 block comment should start with '# '
49    E266 too many leading '#' for block comment
4     E271 multiple spaces after keyword
1     E275 missing whitespace after keyword
198   E301 expected 1 blank line, found 0
153   E302 expected 2 blank lines, found 1
46    E303 too many blank lines (3)
12    E305 expected 2 blank lines after class or function definition, found 1
140   E306 expected 1 blank line before a nested definition, found 0
1     E401 multiple imports on one line
44    E402 module level import not at top of file
15649 E501 line too long (135 > 79 characters)
71    E502 the backslash is redundant between brackets
217   E701 multiple statements on one line (colon)
5     E702 multiple statements on one line (semicolon)
19    E704 multiple statements on one line (def)
13    E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`
46    E731 do not assign a lambda expression, use a def
38    E741 ambiguous variable name 'l'
457   F401 '.util.format_satoshis' imported but unused
5     F402 import '_' from line 23 shadowed by loop variable
134   F541 f-string is missing placeholders
203   F841 local variable 'e2' is assigned to but never used
1     F901 'raise NotImplemented' should be 'raise NotImplementedError'
34    W391 blank line at end of file
201   W503 line break before binary operator
108   W504 line break after binary operator
22181
�������������������������������������������������������������������������������������������������������������