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

feat: add squad to p2pool #1371

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

stringhandler
Copy link
Contributor

  1. add squad to p2pool for telemetry
  2. change p2pool to latest version
  3. change minotari suite to latest version
  4. change p2pool stats to use tokio::watch instead of polling (this means fewer requests to p2pool)

Copy link
Collaborator

@brianp brianp left a comment

Choose a reason for hiding this comment

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

One consideration around the caching.

warn!(target: LOG_TARGET, "Error getting p2pool stats: {}", e);
None
});
let p2pool_stats = state.p2pool_latest_status.borrow().clone();
Copy link
Collaborator

Choose a reason for hiding this comment

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

I've seen some issues with the latest status caching. When you stop mining the last mining status will be cached, and continue to offer whatever stats were last given. Even if no longer connected. (This was fixed for the GPU miner before).

Just mentioning it here in case it's something that should be looked at in regards to p2p stats. Such as p2p is no longer connected but the cached stats have connected_since and makes everyone think it's still connected.

https://github.com/tari-project/universe/pull/1304/files#diff-31c51000768ebc0fedcd78a7c5282936ecee9a65108f5deff570b4d98af9a12cR123-R129

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