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

Fix mining stats for non federation members #829

Merged
merged 1 commit into from
Dec 24, 2021
Merged

Conversation

fassadlr
Copy link
Contributor

No description provided.

@fassadlr fassadlr changed the title Fix logging for non federation members Fix mining stats for non federation members Dec 23, 2021
@quantumagi quantumagi self-requested a review December 23, 2021 09:53
if (!this.federationManager.IsFederationMember)
{
log.AppendLine("Mining information is not available for non federation members.");
log.AppendLine("It is possible that your node was kicked from the federation due to inactivity.");
Copy link
Contributor

@quantumagi quantumagi Dec 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be added subject to there being a pubkey for this node. One could even check the polls in order to show a more relevant/descriptive message. E.g:

  • "Your node has been voted out due to being inactive for X days and will be kicked after X blocks. Wait until then to re-join."
  • "Your node has been kicked due to being inactive for X days. You can now re-join. See the join_api_url".
  • "You can't participate as a federation member without a wallet."
  • "You have not been voted in as a federation member. See the join_api_url".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Gustav, will add to next PR.

@quantumagi quantumagi self-requested a review December 23, 2021 09:56
Copy link
Contributor

@quantumagi quantumagi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just one comment.

@fassadlr fassadlr merged commit 41e7f21 into release/1.1.2.0 Dec 24, 2021
@fassadlr fassadlr deleted the fixlogging branch January 6, 2022 11:54
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.

2 participants