I'm trying to understand the rationale behind Moonbeam's GAS_PER_SECOND
:
/// Current approximation of the gas/s consumption considering
/// EVM execution over compiled WASM (on 4.4Ghz CPU).
/// Given the 500ms Weight, from which 75% only are used for transactions,
/// the total EVM execution gas limit is: GAS_PER_SECOND * 0.500 * 0.75 ~= 15_000_000.
pub const GAS_PER_SECOND: u64 = 40_000_000;
The 75% makes sense, as it's the default NORMAL_DISPATCH_RATIO
for most Substrate chains.
But I was puzzled by the 500ms Weight
, which didn't seem obvious to me.
After some searching, I found this line mentioning that: // Our weight limit is 500ms.
What is rationale behind 500ms
?
Also, what is the rationale behind 15_000_000
?