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

Function dev_set_max_scids_encode_size

gossipd/queries.c:1110–1117  ·  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

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

Callers 1

recv_reqFunction · 0.85

Tested by

no test coverage detected