| 255 | } |
| 256 | |
| 257 | static struct command_result * |
| 258 | payment_getblockheight_success(struct command *cmd, |
| 259 | const char *buffer, |
| 260 | const jsmntok_t *toks, |
| 261 | struct payment *p) |
| 262 | { |
| 263 | const jsmntok_t *blockheighttok = |
| 264 | json_get_member(buffer, toks, "blockheight"); |
| 265 | json_to_number(buffer, blockheighttok, &p->start_block); |
| 266 | payment_continue(p); |
| 267 | return command_still_pending(cmd); |
| 268 | } |
| 269 | |
| 270 | #define INVALID_BLOCKHEIGHT UINT32_MAX |
| 271 |
nothing calls this directly
no test coverage detected