-
Notifications
You must be signed in to change notification settings - Fork 141
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
Add JobDeclaratorClient
struct
#993
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bencher
🚨 2 ALERTS: Threshold Boundary Limits exceeded!
Click to view all benchmark results
Bencher - Continuous Benchmarking View Public Perf Page Docs | Repo | Chat | Help |
Bencher
🚨 1 ALERT: Threshold Boundary Limit exceeded!
Click to view all benchmark results
Bencher - Continuous Benchmarking View Public Perf Page Docs | Repo | Chat | Help |
Bencher
🚨 2 ALERTS: Threshold Boundary Limits exceeded!
Click to view all benchmark results
Bencher - Continuous Benchmarking View Public Perf Page Docs | Repo | Chat | Help |
Bencher
🚨 8 ALERTS: Threshold Boundary Limits exceeded!
Click to view all benchmark results
Bencher - Continuous Benchmarking View Public Perf Page Docs | Repo | Chat | Help |
plebhash
approved these changes
Jun 21, 2024
Shourya742
approved these changes
Jun 23, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 1bdf132
jbesraa
force-pushed
the
2024-06-21-jdc-refactor
branch
from
June 23, 2024 09:12
1bdf132
to
f14e68a
Compare
@Shourya742 @plebhash diff --git a/roles/jd-client/src/lib/mod.rs b/roles/jd-client/src/lib/mod.rs
index 3ae1d1c1..1979eecb 100644
--- a/roles/jd-client/src/lib/mod.rs
+++ b/roles/jd-client/src/lib/mod.rs
@@ -47,7 +47,15 @@ use tracing::{error, info};
/// between all the contexts is not necessary.
pub static IS_NEW_TEMPLATE_HANDLED: AtomicBool = AtomicBool::new(true);
+/// Job Declarator Client (or JDC) is the role which is Miner-side, in charge of creating new
+/// mining jobs from the templates received by the Template Provider to which it is connected. It
+/// declares custom jobs to the JDS, in order to start working on them.
+/// JDC is also responsible for putting in action the Pool-fallback mechanism, automatically
+/// switching to backup Pools in case of declared custom jobs refused by JDS (which is Pool side).
+/// As a solution of last-resort, it is able to switch to Solo Mining until new safe Pools appear
+/// in the market.
pub struct JobDeclaratorClient {
+ /// Configuration of the proxy server [`JobDeclaratorClient`] is connected to.
config: ProxyConfig,
} |
jbesraa
force-pushed
the
2024-06-21-jdc-refactor
branch
from
June 26, 2024 13:51
f14e68a
to
d75e670
Compare
@plebhash resolved conflict |
plebhash
force-pushed
the
2024-06-21-jdc-refactor
branch
2 times, most recently
from
June 27, 2024 21:27
f90b0ee
to
e50e9f0
Compare
jbesraa
force-pushed
the
2024-06-21-jdc-refactor
branch
from
June 30, 2024 15:06
e50e9f0
to
cc65aad
Compare
jbesraa
force-pushed
the
2024-06-21-jdc-refactor
branch
from
July 8, 2024 12:21
cc65aad
to
4a90af8
Compare
jbesraa
force-pushed
the
2024-06-21-jdc-refactor
branch
2 times, most recently
from
July 17, 2024 12:49
f0787a1
to
116ed68
Compare
plebhash
force-pushed
the
2024-06-21-jdc-refactor
branch
from
July 17, 2024 15:08
116ed68
to
a000bb2
Compare
rebased for merging |
With the goal to write more tests, this commit moves JDC initialisation logic from `main.rs` to `lib.rs` so its easier to test and also separate the actual `lib` code from the binary.
plebhash
force-pushed
the
2024-06-21-jdc-refactor
branch
from
July 17, 2024 18:47
a000bb2
to
d9f0c45
Compare
This was referenced Aug 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
resolves #992
With the goal to write more tests, this commit moves JDC initialisation logic from
main.rs
tolib.rs
so its easier to test and also separate the actuallib
code from the binary.