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

Function return_moves

tests/plugins/balance_snaps.py:21–27  ·  view source on GitHub ↗
(plugin)

Source from the content-addressed store, hash-verified

19
20@plugin.method('listsnapshots')
21def return_moves(plugin):
22 result = []
23 if os.path.exists('snaps.json'):
24 with open('snaps.json', 'r') as f:
25 jd = f.read()
26 result = json.loads('[' + jd[:-1] + ']')
27 return {'balance_snapshots': result}
28
29
30plugin.run()

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected