MCPcopy Create free account
hub / github.com/ElementsProject/lightning / amount_through_chan

Function amount_through_chan

tests/test_askrene.py:1754–1760  ·  view source on GitHub ↗
(chan, routes)

Source from the content-addressed store, hash-verified

1752 chan = route['routes'][0]['path'][-1]['short_channel_id_dir']
1753
1754 def amount_through_chan(chan, routes):
1755 total = 0
1756 for r in routes:
1757 for p in r['path']:
1758 if p['short_channel_id_dir'] == chan:
1759 total += p['amount_in_msat']
1760 return total
1761 amount_before = amount_through_chan(chan, route['routes'])
1762
1763 l1.rpc.askrene_bias_channel('biases', chan, -bias)

Callers 1

test_real_biasesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected