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

Function was_reserved

wallet/reservation.c:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17#define RESERVATION_DEFAULT (6 * 12)
18
19static bool was_reserved(enum output_status oldstatus,
20 u32 reserved_til,
21 u32 current_height)
22{
23 if (oldstatus != OUTPUT_STATE_RESERVED)
24 return false;
25
26 return reserved_til > current_height;
27}
28
29static void json_add_reservestatus(struct json_stream *response,
30 const struct utxo *utxo,

Callers 1

json_add_reservestatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected