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