| 1246 | } |
| 1247 | |
| 1248 | void json_add_bias(struct json_stream *js, |
| 1249 | const char *fieldname, |
| 1250 | const struct bias *b, |
| 1251 | const struct layer *layer) |
| 1252 | { |
| 1253 | json_object_start(js, fieldname); |
| 1254 | if (layer) |
| 1255 | json_add_string(js, "layer", layer->name); |
| 1256 | json_add_short_channel_id_dir(js, "short_channel_id_dir", b->scidd); |
| 1257 | if (b->description) |
| 1258 | json_add_string(js, "description", b->description); |
| 1259 | json_add_s64(js, "bias", b->bias); |
| 1260 | json_add_u64(js, "timestamp", b->timestamp); |
| 1261 | json_object_end(js); |
| 1262 | } |
| 1263 | |
| 1264 | void json_add_node_bias(struct json_stream *js, |
| 1265 | const char *fieldname, |
no test coverage detected