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. */
| 1108 | /* This is a testing hack to allow us to artificially lower the maximum bytes |
| 1109 | * of short_channel_ids we'll encode, using dev_set_max_scids_encode_size. */ |
| 1110 | void dev_set_max_scids_encode_size(struct daemon *daemon, const u8 *msg) |
| 1111 | { |
| 1112 | if (!fromwire_gossipd_dev_set_max_scids_encode_size(msg, |
| 1113 | &dev_max_encoding_bytes)) |
| 1114 | master_badmsg(WIRE_GOSSIPD_DEV_SET_MAX_SCIDS_ENCODE_SIZE, msg); |
| 1115 | |
| 1116 | status_debug("Set max_scids_encode_bytes to %u", dev_max_encoding_bytes); |
| 1117 | } |
| 1118 | #endif /* DEVELOPER */ |
no test coverage detected