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

Function would_ratelimit_cupdate

gossipd/routing.c:1514–1520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1512}
1513
1514bool would_ratelimit_cupdate(struct routing_state *rstate,
1515 const struct half_chan *hc,
1516 u32 timestamp)
1517{
1518 return update_tokens(rstate, hc->tokens, hc->bcast.timestamp, timestamp)
1519 >= TOKENS_PER_MSG;
1520}
1521
1522static const struct node_id *get_channel_owner(struct routing_state *rstate,
1523 const struct short_channel_id *scid,

Callers 1

want_updateFunction · 0.70

Calls 1

update_tokensFunction · 0.85

Tested by

no test coverage detected