Skip to content

Commit 761858d

Browse files
committed
Add endBlock into epoch snapshot
1 parent c4b7d33 commit 761858d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

contracts/sfc/SFC.sol

+1
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ contract SFC is SFCBase, Version {
369369

370370
currentSealedEpoch = currentEpoch();
371371
snapshot.endTime = _now();
372+
snapshot.endBlock = block.number;
372373
snapshot.baseRewardPerSecond = c.baseRewardPerSecond();
373374
snapshot.totalSupply = totalSupply;
374375
}

contracts/sfc/SFCState.sol

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ contract SFCState is Initializable, Ownable {
7171
mapping(uint256 => uint256) offlineBlocks;
7272
uint256[] validatorIDs;
7373
uint256 endTime;
74+
uint256 endBlock;
7475
uint256 epochFee;
7576
uint256 totalBaseRewardWeight;
7677
uint256 totalTxRewardWeight;

0 commit comments

Comments
 (0)