feat: k2pow service #1232
ci.yml
on: pull_request
Annotations
3 warnings
returning the result of a `let` binding from a block:
k2pow-service/src/main.rs#L194
warning: returning the result of a `let` binding from a block
--> k2pow-service/src/main.rs:194:13
|
179 | / let res = pool.install(|| -> Result<u64, post::pow::Error> {
180 | | let pow = PoW::new(randomx_flags).unwrap();
181 | | tracing::debug!(
182 | | "proving k2pow: nonce group: {}, challenge: {}, difficulty: {}, miner {}",
... |
191 | | Ok(res)
192 | | });
| |_______________- unnecessary `let` binding
193 |
194 | res
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
= note: `#[warn(clippy::let_and_return)]` on by default
help: return the expression directly
|
179 ~
180 |
181 ~ pool.install(|| -> Result<u64, post::pow::Error> {
182 + let pow = PoW::new(randomx_flags).unwrap();
183 + tracing::debug!(
184 + "proving k2pow: nonce group: {}, challenge: {}, difficulty: {}, miner {}",
185 + job.nonce_group,
186 + hex::encode(job.challenge),
187 + hex::encode(job.difficulty),
188 + hex::encode(job.miner)
189 + );
190 + let res =
191 + pow.prove(job.nonce_group, &job.challenge, &job.difficulty, &job.miner)?;
192 + tracing::debug!("k2pow result: {}", res);
193 + Ok(res)
194 + })
|
|
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
clippy
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
libpost-linux
|
3.61 MB |
|
libpost-linux-arm64
|
3.65 MB |
|
libpost-macos
|
3.41 MB |
|
libpost-macos-m1
|
3.34 MB |
|
libpost-windows
|
3.49 MB |
|
post-service-linux
|
4.34 MB |
|
post-service-linux-arm64
|
4.36 MB |
|
post-service-macos
|
3.95 MB |
|
post-service-macos-m1
|
3.78 MB |
|
post-service-windows
|
3.47 MB |
|
profiler-linux
|
1.41 MB |
|
profiler-linux-arm64
|
1.39 MB |
|
profiler-macos
|
1.28 MB |
|
profiler-macos-m1
|
1.21 MB |
|
profiler-windows
|
1.08 MB |
|