sirius
sirius copied to clipboard
Feature Request: Add Gas Statistics for Core Space and Espace
Currently, Confluxscan displays transaction throughput, which is a valuable metric. However, with the growth of the smart contract ecosystem, transaction throughput alone might not sufficiently represent the total load on the chain. Simple transactions may only require 21,000 gas, whereas more complex ones can consume millions. Therefore, it's crucial to display gas usage and gas limits to provide a more comprehensive overview.
Suggested Details:
-
Gas Usage Calculation:
- For the whole network, gas usage can be directly obtained from the accumulated gas used in the block header.
- For individual Core Space or Espace transactions, gas used can be gathered from each transaction's receipt.
-
Gas Limit Calculation:
- For the whole network, the limit could be estimated as the number of blocks multiplied by 30 million.
- For Core Space, this limit would be the same as the whole network.
- For Espace, an estimated limit could be set at 1/10 of the combined spaces' limit. (Note: This is an estimation, so the gas usage might slightly exceed 100%).
This enhancement would provide a clearer picture of the chain's overall load and also aid in demonstrating the efficiency and scalability of Conflux chain.