Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rep crawler weight minimum #3531

Merged
merged 5 commits into from
Oct 28, 2021

Conversation

dsiganos
Copy link
Contributor

@dsiganos dsiganos commented Oct 27, 2021

Introduce a feature to allow the rep crawler to track reps with weight lower than principal rep.
This is for debugging purposes and for websites that would like to track all online reps irrespective of weight.

I also introduce the framework for rep crawler log messages.
And I updated the Representative Found" to print the channel info and also to distinguish between an addition
and an update. And on update it prints the channel before and after to help us diagnose problems with reps not having
the correct IP address.

Fixes #2176

Use if guards to remove a couple of levels of nested ifs that was
making the code difficult to read.
…ntries

It would be nice to know if an entry is new or if an entry is changing
existing data. Also print the account address of the rep involved.
If modifying data, print the previous data too.
nano/node/repcrawler.cpp Outdated Show resolved Hide resolved
clemahieu
clemahieu previously approved these changes Oct 27, 2021
@zhyatt zhyatt added this to the V23.0 milestone Oct 27, 2021
@zhyatt zhyatt added the debug Updates assisting with debugging and development efforts label Oct 27, 2021
…on PRs

Introduced a new node config called 'rep_crawler_weight_minimum'.
If rep_crawler_weight_minimum is less than the PR minimum weight then
that becomes the minimum weight that the rep crawler tracks.

Setting rep_crawler_weight_minimum to zero would track all reps.
Previously the minimum value was not part of the accepted range, which
did not make much sense logically.

in practice, this change should be so small that it should insignificant.
@dsiganos dsiganos merged commit 0cb9b7d into nanocurrency:develop Oct 28, 2021
@dsiganos dsiganos deleted the rep_crawler_weight_minimum branch October 28, 2021 15:35
@zhyatt zhyatt added logging documentation This item indicates the need for or supplies updated or expanded documentation toml TOML related change labels Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debug Updates assisting with debugging and development efforts documentation This item indicates the need for or supplies updated or expanded documentation logging toml TOML related change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

confirmation_quorum not including all representatives
4 participants