| 48 | } |
| 49 | |
| 50 | static bool encoding_end(const u8 *encoded, size_t max_bytes) |
| 51 | { |
| 52 | if (tal_count(encoded) > dev_max_encoding_bytes) |
| 53 | return false; |
| 54 | return tal_count(encoded) <= max_bytes; |
| 55 | } |
| 56 | |
| 57 | /* Convenience function to send warning to a peer */ |
| 58 | static void warning_to_peer(struct peer *peer, const char *fmt, ...) |
no outgoing calls
no test coverage detected