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

Function utxo_is_reserved

common/utxo.h:59–65  ·  view source on GitHub ↗

We lazy-evaluate whether a utxo is really still reserved. */

Source from the content-addressed store, hash-verified

57
58/* We lazy-evaluate whether a utxo is really still reserved. */
59static inline bool utxo_is_reserved(const struct utxo *utxo, u32 current_height)
60{
61 if (utxo->status != OUTPUT_STATE_RESERVED)
62 return false;
63
64 return utxo->reserved_til > current_height;
65}
66
67static inline bool utxo_is_csv_locked(const struct utxo *utxo, u32 current_height)
68{

Callers 5

json_add_utxoFunction · 0.85
json_add_reservestatusFunction · 0.85
json_reserveinputsFunction · 0.85
json_utxopsbtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected