| 1790 | } |
| 1791 | |
| 1792 | static struct command_result *param_u64_nonzero(struct command *cmd, |
| 1793 | const char *name, |
| 1794 | const char *buffer, |
| 1795 | const jsmntok_t *tok, |
| 1796 | u64 **val) |
| 1797 | { |
| 1798 | struct command_result *res = param_u64(cmd, name, buffer, tok, val); |
| 1799 | if (res == NULL && *val == 0) |
| 1800 | res = command_fail_badparam(cmd, name, buffer, tok, |
| 1801 | "Must be non-zero"); |
| 1802 | return res; |
| 1803 | } |
| 1804 | |
| 1805 | static void register_payment_and_waiter(struct command *cmd, |
| 1806 | const struct sha256 *payment_hash, |
nothing calls this directly
no test coverage detected