We lazy-evaluate whether a utxo is really still reserved. */
| 57 | |
| 58 | /* We lazy-evaluate whether a utxo is really still reserved. */ |
| 59 | static 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 | |
| 67 | static inline bool utxo_is_csv_locked(const struct utxo *utxo, u32 current_height) |
| 68 | { |
no outgoing calls
no test coverage detected