| 17 | #define RESERVATION_DEFAULT (6 * 12) |
| 18 | |
| 19 | static 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 | |
| 29 | static void json_add_reservestatus(struct json_stream *response, |
| 30 | const struct utxo *utxo, |
no outgoing calls
no test coverage detected