Skip to content

Commit

Permalink
chore: no more max_records cap
Browse files Browse the repository at this point in the history
  • Loading branch information
maqi authored and joshuef committed Jan 3, 2024
1 parent 1ee7a8a commit adc4886
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions sn_networking/src/record_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,11 +527,6 @@ impl RecordStore for ClientRecordStore {
fn calculate_cost_for_relevant_records(step: usize, received_payment_count: usize) -> u64 {
use std::cmp::max;

assert!(
step <= MAX_RECORDS_COUNT,
"step must be <= MAX_RECORDS_COUNT"
);

let ori_cost = (10 * step) as u64;
let divider = max(1, step / max(1, received_payment_count)) as u64;
max(10, ori_cost / divider)
Expand Down

0 comments on commit adc4886

Please sign in to comment.