Skip to content

Commit

Permalink
fix: fix code (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksrichard authored Sep 19, 2024
1 parent 7fe741b commit e9b6f0a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sha_p2pool"
version = "0.1.5-pre.9"
version = "0.1.5-pre.10"
edition = "2021"

[dependencies]
Expand Down
3 changes: 2 additions & 1 deletion src/server/grpc/p2pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ where
/// Validates the submitted block with the p2pool network, checks for difficulty matching
/// with network (using base node), submits mined block to base node and submits new p2pool block
/// to p2pool network.
#[allow(clippy::too_many_lines)]
async fn submit_block(
&self,
request: Request<SubmitBlockRequest>,
Expand Down Expand Up @@ -262,7 +263,7 @@ where
.await
.map_err(|error| Status::internal(error.to_string()))?;

let origin_block_header = block.original_block_header();
let origin_block_header = &block.original_block_header().clone();

// Check block's difficulty compared to the latest network one to increase the probability
// to get the block accepted (and also a block with lower difficulty than latest one is invalid anyway).
Expand Down

0 comments on commit e9b6f0a

Please sign in to comment.