MCPcopy Create free account
hub / github.com/ElementsProject/lightning / dev_set_max_scids_encode_size

Function dev_set_max_scids_encode_size

connectd/queries.c:816–824  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

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. */
816void 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}

Callers 1

recv_reqFunction · 0.85

Tested by

no test coverage detected