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

Function return_moves

tests/plugins/coin_movements.py:23–29  ·  view source on GitHub ↗
(plugin)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected