| 182 | } |
| 183 | |
| 184 | void towire_shachain(u8 **pptr, const struct shachain *shachain) |
| 185 | { |
| 186 | size_t i; |
| 187 | |
| 188 | towire_u64(pptr, shachain->min_index); |
| 189 | towire_u32(pptr, shachain->num_valid); |
| 190 | |
| 191 | for (i = 0; i < shachain->num_valid; i++) { |
| 192 | towire_u64(pptr, shachain->known[i].index); |
| 193 | towire_sha256(pptr, &shachain->known[i].hash); |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | static struct tlv_field *fromwire_len_and_tlvstream(const tal_t *ctx, |
| 198 | const u8 **cursor, size_t *max) |
nothing calls this directly
no test coverage detected