-
Notifications
You must be signed in to change notification settings - Fork 135
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
Separate lib
code from bin
in mining-device
#1163
Separate lib
code from bin
in mining-device
#1163
Conversation
Bencher Report
Click to view all benchmark results
|
Bencher Report
Click to view all benchmark results
|
Bencher Report
Click to view all benchmark results
|
@@ -24,3 +29,6 @@ tracing = { version = "0.1" } | |||
tracing-subscriber = "0.3" | |||
sha2 = "0.10.6" | |||
tokio = "^1.38.0" | |||
|
|||
[features] | |||
abort_mining = [] |
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.
what is the purpose of this feature?
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.
I added this to replicate exactly the MG test, which says that the mining-device
should not start mining https://github.com/stratum-mining/stratum/pull/1163/files#diff-cc06b104e73cde20ec61e683c5b4eb74e5422641e422652485c1026dd72a7a98R255
In practice I do not think its needed tbh because anyway the mining-device wont be able to open a channel
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.
ok so why do we have it? can't we get away with not having this?
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.
Removed the redundant flag
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.
Removed the redundant flag
I don't understand, abort_mining
seems to be still there
a7ffeff
to
36ea0a2
Compare
Bencher Report
Click to view all benchmark results
|
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.
Looks good!
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.
Need to understand why we removed the info
log containing the req_id
and then fix the cargo clippy
error in the CI.
b3b55e7
to
19a6968
Compare
Bencher Report
Click to view all benchmark results
|
b87a928
to
27c4b44
Compare
CI is currently broken, it is fixed at #1170 |
Isolating the library code into a `lib/mod.rs` and consume it in `main.rs`.
..cargo does not allow hyphens in library target name
27c4b44
to
48a81b0
Compare
Rebased without further changes |
Resolving
MiningDevice
in the list here #1093