Skip to content

Commit

Permalink
Add endBlock into epoch snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-CZ committed Oct 9, 2024
1 parent c4b7d33 commit 761858d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions contracts/sfc/SFC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ contract SFC is SFCBase, Version {

currentSealedEpoch = currentEpoch();
snapshot.endTime = _now();
snapshot.endBlock = block.number;
snapshot.baseRewardPerSecond = c.baseRewardPerSecond();
snapshot.totalSupply = totalSupply;
}
Expand Down
1 change: 1 addition & 0 deletions contracts/sfc/SFCState.sol
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ contract SFCState is Initializable, Ownable {
mapping(uint256 => uint256) offlineBlocks;
uint256[] validatorIDs;
uint256 endTime;
uint256 endBlock;
uint256 epochFee;
uint256 totalBaseRewardWeight;
uint256 totalTxRewardWeight;
Expand Down

0 comments on commit 761858d

Please sign in to comment.