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

Function check_moves

tests/test_coinmoves.py:29–36  ·  view source on GitHub ↗
(moves, expected)

Source from the content-addressed store, hash-verified

27
28
29def check_moves(moves, expected):
30 # Can't predict timestamp
31 for m in moves:
32 del m['timestamp']
33 # But we can absolutely predict created_index.
34 for i, m in enumerate(expected, start=1):
35 m['created_index'] = i
36 assert moves == expected
37
38
39def check_channel_moves(node, expected):

Callers 2

check_channel_movesFunction · 0.85
check_chain_movesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected