| 108 | } |
| 109 | |
| 110 | bool fromwire_dstore_channel(const u8 **cursor, size_t *len, |
| 111 | struct node_id *n1, |
| 112 | struct node_id *n2, |
| 113 | struct short_channel_id *scid, |
| 114 | struct amount_msat *capacity) |
| 115 | { |
| 116 | if (fromwire_u16(cursor, len) != DSTORE_CHANNEL) { |
| 117 | fromwire_fail(cursor, len); |
| 118 | return false; |
| 119 | } |
| 120 | fromwire_node_id(cursor, len, n1); |
| 121 | fromwire_node_id(cursor, len, n2); |
| 122 | *scid = fromwire_short_channel_id(cursor, len); |
| 123 | *capacity = fromwire_amount_msat(cursor, len); |
| 124 | |
| 125 | return *cursor != NULL; |
| 126 | } |
| 127 | |
| 128 | void towire_dstore_channel(u8 **data, |
| 129 | const struct node_id *n1, |
no test coverage detected