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

Function set_disable_flag

gossipd/gossip_generation.c:859–867  ·  view source on GitHub ↗

Take update, set/unset disabled flag (and update timestamp). */

Source from the content-addressed store, hash-verified

857/* Take update, set/unset disabled flag (and update timestamp).
858 */
859static void set_disable_flag(u8 *channel_update, bool disable)
860{
861 u8 *channel_flags = channel_flags_access(channel_update);
862
863 if (disable)
864 *channel_flags |= ROUTING_FLAGS_DISABLED;
865 else
866 *channel_flags &= ~ROUTING_FLAGS_DISABLED;
867}
868
869/* We don't immediately disable, to avoid flapping. */
870void local_disable_chan(struct daemon *daemon, const struct chan *chan, int direction)

Callers 2

local_disable_chanFunction · 0.85
local_enable_chanFunction · 0.85

Calls 1

channel_flags_accessFunction · 0.85

Tested by

no test coverage detected