Skip to content

Commit

Permalink
Add minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi3700 committed Mar 14, 2024
1 parent 8db8ee8 commit 15532b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/farmer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ pub(super) async fn create_farmer(farmer_options: FarmerOptions) -> anyhow::Resu

/// the farmer can expect to get the next reward payment in this time units (sec/min/hr).
#[allow(dead_code)]
fn calculate_expected_reward_duration_from_now(
pub(crate) fn calculate_expected_reward_duration_from_now(
total_space_pledged: u128,
space_pledged: u128,
last_reward_timestamp: Option<i64>,
Expand Down
2 changes: 1 addition & 1 deletion src/backend/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ where
.expect("Failed to get current solution range");

// Calculate the total space pledged
let total_space_pledged: u128 = u128::from(u64::MAX)
let total_space_pledged = u128::from(u64::MAX)
.checked_mul(PIECE_SIZE as u128)
.expect("Multiplication with piece size works; qed")
.checked_mul(u128::from(SLOT_PROBABILITY.0))
Expand Down

0 comments on commit 15532b8

Please sign in to comment.