Skip to content

new CLI config: flood.max.advert#2702

Merged
ripplebiz merged 2 commits into
devfrom
flood.max.advert
Jun 6, 2026
Merged

new CLI config: flood.max.advert#2702
ripplebiz merged 2 commits into
devfrom
flood.max.advert

Conversation

@ripplebiz

Copy link
Copy Markdown
Member
  • new CLI config: flood.max.advert (default 16)

@liamcottle

liamcottle commented Jun 6, 2026

Copy link
Copy Markdown
Member

Below are my comments from Discord:
https://discord.com/channels/1495203904898728149/1495410606985969765/1512657279869259867

This is similar to flood.max but it limits flood adverts only. The idea here, is instead of adverts defaulting to a max of 64 hops, it's set to 16 hops, enforced at the forwarding repeater. With the ability to increase if needed and decrease even more if desired.

There was a PR opened for this by someone else, however it looks like the owner of the PR deleted their GitHub account, so the PR is no longer mergable. #2408

The idea is that this will drop max advert flooding from 64 hops to 16. I personally wanted to have the TTL/max hops on the advert packet, but unfortunately using the feature flags (in my proposal) would increase advert size by 2-bytes and truncate the name max length by another 2-bytes...

The main reason I'm asking for feedback here, is because instead of defaulting to 64, we would default to 16, and it won't really be possible for adverts to travel any further than this, without network repeater owners increasing the limit.

I'm personally in favour of the PR, as it should help to decrease the affect of flood adverts on the network. Generally an advert going 64 hops is not needed. So finding a balance on how far they really should travel (by default) is the hard part. We settled on 16 as a start.

@IoTThinks

Copy link
Copy Markdown
Contributor

It should be fine.
In the future, the repeater should automatically set this parameter based on how busy it is.

@ripplebiz ripplebiz merged commit 74adda6 into dev Jun 6, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants