Delete balance checkpoints that expired (i.e. are before cleanupBlockNumber).
Method can only be called from the cleanerContract (which may be a proxy to external cleaners).
Delete stakes checkpoints that expired (i.e. are before cleanupBlockNumber).
Method can only be called from the cleanerContract (which may be a proxy to external cleaners).
Delete total supply cache entry that expired (i.e. is before cleanupBlockNumber).
Method can only be called from the cleanerContract (which may be a proxy to external cleaners).
Parameters
Type
Description
_blockNumber
uint256
the block number for which total supply value was cached
Returns
Type
Description
[0]
uint256
the number of cache entries deleted (always 0 or 1)
Delete total supply checkpoints that expired (i.e. are before cleanupBlockNumber).
Method can only be called from the cleanerContract (which may be a proxy to external cleaners).
Get the total vote power at block _blockNumber using cache.
It tries to read the cached value and if not found, reads the actual value and stores it in cache.
Can only be used if _blockNumber is in the past, otherwise reverts.
Parameters
Type
Description
_blockNumber
uint256
The block number at which to fetch.
Returns
Type
Description
[0]
uint256
The total vote power at the block (sum of all accounts' vote powers).
Delete vote power cache entry that expired (i.e. is before cleanupBlockNumber).
Method can only be called from the cleanerContract (which may be a proxy to external cleaners).
Parameters
Type
Description
_nodeId
bytes20
vote power node id
_blockNumber
uint256
the block number for which total supply value was cached
Returns
Type
Description
[0]
uint256
the number of cache entries deleted (always 0 or 1)
Delete vote power checkpoints that expired (i.e. are before cleanupBlockNumber).
Method can only be called from the cleanerContract (which may be a proxy to external cleaners).
Get the vote power of _owner at block _blockNumber using cache.
It tries to read the cached value and if not found, reads the actual value and stores it in cache.
Can only be used if _blockNumber is in the past, otherwise reverts.