MCPcopy Create free account
hub / github.com/base/base / validity_pool_limits

Method validity_pool_limits

crates/execution/node/src/args.rs:509–517  ·  view source on GitHub ↗

Resolves the validity pool flags, converting the size cap from megabytes.

(&self)

Source from the content-addressed store, hash-verified

507impl RollupArgs {
508 /// Resolves the validity pool flags, converting the size cap from megabytes.
509 pub fn validity_pool_limits(&self) -> ValidityPoolLimits {
510 ValidityPoolLimits {
511 max_txs: self.validity_pool_max_count,
512 max_size: self
513 .validity_pool_max_size
514 .map(|megabytes| megabytes.saturating_mul(MIB as usize)),
515 max_account_slots: self.validity_pool_max_account_slots,
516 }
517 }
518}
519
520impl HasRollupArgs for RollupArgs {

Callers 2

componentsMethod · 0.80
componentsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected