| 100 | } |
| 101 | |
| 102 | size_t sphinx_path_payloads_size(const struct sphinx_path *path) |
| 103 | { |
| 104 | size_t size = 0; |
| 105 | for (size_t i=0; i<tal_count(path->hops); i++) |
| 106 | size += sphinx_hop_size(&path->hops[i]); |
| 107 | return size; |
| 108 | } |
| 109 | |
| 110 | bool sphinx_add_hop_has_length(struct sphinx_path *path, const struct pubkey *pubkey, |
| 111 | const u8 *payload TAKES) |
no test coverage detected