Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion iot_verifier/src/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ impl Loader {
after: DateTime<Utc>,
before: DateTime<Utc>,
) -> anyhow::Result<()> {
// create the inital xor data vec
// create the initial xor data vec
// wrapped in a mutex to allow for concurrent access
let xor_data = Mutex::new(Vec::<u64>::new());

Expand Down
4 changes: 2 additions & 2 deletions iot_verifier/src/reward_share.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static DATA_TRANSFER_REWARDS_PER_DAY_PERCENT: Decimal = dec!(0.50);
static OPERATIONS_REWARDS_PER_DAY_PERCENT: Decimal = dec!(0.07);
// Oracles fund is allocated 7% of daily rewards
static ORACLES_REWARDS_PER_DAY_PERCENT: Decimal = dec!(0.07);
// dc remainer distributed at ration of 4:1 in favour of witnesses
// dc remainder distributed at ration of 4:1 in favour of witnesses
// ie WITNESS_REWARDS_PER_DAY_PERCENT:BEACON_REWARDS_PER_DAY_PERCENT
static WITNESS_DC_REMAINER_PERCENT: Decimal = dec!(0.80);
static BEACON_DC_REMAINER_PERCENT: Decimal = dec!(0.20);
Expand Down Expand Up @@ -283,7 +283,7 @@ impl GatewayShares {
// the rewards distributed to gateways will be equal to this
// up to a max cap of total_dc_transfer_rewards
// if the dc transfer rewards is less than total_dc_transfer_rewards
// then the remainer will be added to the POC rewards allocation
// then the remainder will be added to the POC rewards allocation
let total_dc_transfer_rewards_used =
dc_to_hnt_bones(total_dc_shares, price_info.price_per_bone);
let (dc_transfer_rewards_unused, total_dc_transfer_rewards_capped) =
Expand Down
2 changes: 1 addition & 1 deletion metrics/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ macro_rules! record_duration {
/// Incrementing a corresponding Prometheus gauge when the request is
/// received and decrementing it when it has been responded to.
/// 2. Request handling duration.
/// Starting a timer before calling the handler and stoping after the
/// Starting a timer before calling the handler and stopping after the
/// handler returns.
#[derive(Clone)]
pub struct RequestsLayer {
Expand Down
2 changes: 1 addition & 1 deletion mobile_packet_verifier/tests/integrations/burner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ fn unconfirmed_pending_txn_moves_data_session_back_to_primary_table(
assert_eq!(txn_count, 1, "there should be a single pending txn");

// Fail the pending txn.
// Adding a random confirmed txn wll cause other txns to not be considered finalized
// Adding a random confirmed txn will cause other txns to not be considered finalized
let solana_network = TestSolanaClientMap::default();
solana_network.add_confirmed(Signature::new_unique()).await;

Expand Down