Skip to content

Commit

Permalink
add batch id
Browse files Browse the repository at this point in the history
  • Loading branch information
guoshijiang committed Jan 17, 2025
1 parent 1c52692 commit ff6d878
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/FinalityRelayerManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ contract FinalityRelayerManager is OwnableUpgradeable, FinalityRelayerManagerSto
function VerifyFinalitySignature(
FinalityBatch calldata finalityBatch,
IBLSApkRegistry.FinalityNonSignerAndSignature memory finalityNonSignerAndSignature,
uint256 minGas
uint256 minGas,
uint256 batchId
) external {
(
IBLSApkRegistry.StakeTotals memory stakeTotals,
Expand Down Expand Up @@ -102,7 +103,7 @@ contract FinalityRelayerManager is OwnableUpgradeable, FinalityRelayerManagerSto
);
require(success, "StrategyBase.VerifyFinalitySignature: change finalized periods in dispute game factory seconds fail");
}
emit VerifyFinalitySig(stakeTotals.totalBtcStaking, stakeTotals.totalMantaStaking, signatoryRecordHash);
emit VerifyFinalitySig(batchId, stakeTotals.totalBtcStaking, stakeTotals.totalMantaStaking, signatoryRecordHash);
}

function addOrRemoveOperatorWhitelist(address operator, bool isAdd) external onlyOperatorWhitelistManager {
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/IFinalityRelayerManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ interface IFinalityRelayerManager {
event OperatorDeRegistered(address operator);

event VerifyFinalitySig(
uint256 batchId,
uint256 totalBtcStaking,
uint256 totalMantaStaking,
bytes32 signatoryRecordHash
Expand Down

0 comments on commit ff6d878

Please sign in to comment.