This is a testing hack to allow us to artificially lower the maximum bytes * of short_channel_ids we'll encode, using dev_set_max_scids_encode_size. */
| 814 | /* This is a testing hack to allow us to artificially lower the maximum bytes |
| 815 | * of short_channel_ids we'll encode, using dev_set_max_scids_encode_size. */ |
| 816 | void dev_set_max_scids_encode_size(struct daemon *daemon, const u8 *msg) |
| 817 | { |
| 818 | assert(daemon->developer); |
| 819 | if (!fromwire_connectd_dev_set_max_scids_encode_size(msg, |
| 820 | &dev_max_encoding_bytes)) |
| 821 | master_badmsg(WIRE_CONNECTD_DEV_SET_MAX_SCIDS_ENCODE_SIZE, msg); |
| 822 | |
| 823 | status_debug("Set max_scids_encode_bytes to %u", dev_max_encoding_bytes); |
| 824 | } |
no test coverage detected