| 246 | } |
| 247 | |
| 248 | const struct block_record_wire *bwatch_last_block(const struct bwatch *bwatch) |
| 249 | { |
| 250 | if (tal_count(bwatch->block_history) == 0) |
| 251 | return NULL; |
| 252 | |
| 253 | return &bwatch->block_history[tal_count(bwatch->block_history) - 1]; |
| 254 | } |
| 255 | |
| 256 | void bwatch_load_block_history(struct command *cmd, struct bwatch *bwatch) |
| 257 | { |
no outgoing calls
no test coverage detected