We lazy-evaluate whether a utxo is really still reserved. */
| 62 | |
| 63 | /* We lazy-evaluate whether a utxo is really still reserved. */ |
| 64 | static 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 | |
| 72 | static inline bool utxo_is_csv_locked(const struct utxo *utxo, u32 current_height) |
| 73 | { |
no outgoing calls
no test coverage detected