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

Function check_balance_snaps

tests/utils.py:110–116  ·  view source on GitHub ↗
(n, expected_bals)

Source from the content-addressed store, hash-verified

108
109
110def check_balance_snaps(n, expected_bals):
111 snaps = n.rpc.listsnapshots()['balance_snapshots']
112 for snap, exp in zip(snaps, expected_bals):
113 if snap['blockheight'] != exp['blockheight']:
114 raise Exception('Unexpected balance snap blockheight: {} vs {}'.format(_dictify(snap), _dictify(exp)))
115 if _dictify(snap) != _dictify(exp):
116 raise Exception('Unexpected balance snap: {} vs {}'.format(_dictify(snap), _dictify(exp)))
117
118
119def check_coin_moves(n, account_id, expected_moves, chainparams):

Callers

nothing calls this directly

Calls 1

_dictifyFunction · 0.85

Tested by

no test coverage detected