1
0

lnhtlc: htlcs_by_direction now returns dict keyed by htlc_id

This commit is contained in:
SomberNight
2019-08-14 21:35:37 +02:00
committed by ThomasV
parent 8e2ebddc0b
commit ce54b5411e
4 changed files with 22 additions and 21 deletions

View File

@@ -82,7 +82,7 @@ class TestHTLCManager(unittest.TestCase):
else:
B.send_fail(0)
A.recv_fail(0)
self.assertEqual(A.htlcs_by_direction(REMOTE, RECEIVED), [H('A', 0)])
self.assertEqual(list(A.htlcs_by_direction(REMOTE, RECEIVED).values()), [H('A', 0)])
self.assertNotEqual(A.get_htlcs_in_latest_ctx(LOCAL), [])
self.assertNotEqual(B.get_htlcs_in_latest_ctx(REMOTE), [])