Resolves the validity pool flags, converting the size cap from megabytes.
(&self)
| 507 | impl 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 | |
| 520 | impl HasRollupArgs for RollupArgs { |
no outgoing calls
no test coverage detected