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

Function zero_timestamps

tests/test_plugin.py:5052–5063  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

5050 wait_for_announce=True)
5051
5052 def zero_timestamps(obj):
5053 if isinstance(obj, dict):
5054 for k, v in obj.items():
5055 if k == "timestamp":
5056 obj[k] = 0
5057 else:
5058 zero_timestamps(v)
5059 elif isinstance(obj, list):
5060 for item in obj:
5061 zero_timestamps(item)
5062 # other types are ignored
5063 return obj
5064
5065 inv1 = l3.rpc.invoice(20000, "first", "desc")
5066 l1.rpc.pay(inv1['bolt11'])

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected