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

Function utxo_is_reserved

common/utxo.h:64–70  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 6

json_add_utxoFunction · 0.85
wallet_utxo_boostFunction · 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