mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-21 23:24:19 +01:00
probe: fix flake8 nits
This commit is contained in:
committed by
Christian Decker
parent
de5489c1d6
commit
1002a62aa2
@@ -141,9 +141,9 @@ def traceroute(plugin, node_id, **kwargs):
|
|||||||
return traceroute
|
return traceroute
|
||||||
|
|
||||||
# For each prefix length, shorten the route and attempt the payment
|
# For each prefix length, shorten the route and attempt the payment
|
||||||
for l in range(1, len(traceroute['route']) + 1):
|
for i in range(1, len(traceroute['route']) + 1):
|
||||||
probe = {
|
probe = {
|
||||||
'route': traceroute['route'][:l],
|
'route': traceroute['route'][:i],
|
||||||
'payment_hash': ''.join(random.choice(string.hexdigits) for _ in range(64)),
|
'payment_hash': ''.join(random.choice(string.hexdigits) for _ in range(64)),
|
||||||
'started_at': str(datetime.now()),
|
'started_at': str(datetime.now()),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user