| 396 | } |
| 397 | |
| 398 | void db_col_pubkey(struct db_stmt *stmt, |
| 399 | const char *colname, |
| 400 | struct pubkey *dest) |
| 401 | { |
| 402 | size_t col = db_query_colnum(stmt, colname); |
| 403 | bool ok; |
| 404 | assert(db_column_bytes(stmt, col) == PUBKEY_CMPR_LEN); |
| 405 | ok = pubkey_from_der(db_column_blob(stmt, col), PUBKEY_CMPR_LEN, dest); |
| 406 | assert(ok); |
| 407 | } |
| 408 | |
| 409 | struct short_channel_id db_col_short_channel_id(struct db_stmt *stmt, const char *colname) |
| 410 | { |
no test coverage detected