...cript
/// @notice A checkpoint for marking number of votes from a given block
//当前blockNumber具有多少投票权
struct Checkpoint {
uint32 fromBlock;
uint96 votes;
}
/// @notice 用户投票权记录, by index,相同的blockNumber肯定是相同的index
mapping(a...
... gas 限制相同的限制。这受到了
[多维 Gas 计量](https://learnblockchain.cn/article/21652)
设计的启发,但常规 gas 不会被触及,就像 L1 以太坊的这种设计一样。
与交易 calldata 的常规 gas 使用量类似,我们通过获取其 RLP 编码来计算交易的...