Skip to content

Commit

Permalink
fix: review
Browse files Browse the repository at this point in the history
  • Loading branch information
eddort committed Feb 27, 2023
1 parent da65ca5 commit b892e98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/guardian/guardian-metrics/guardian-metrics.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class GuardianMetricsService {
/**
* Collects metrics about keys intersections
* @param all - all intersections
* @param filtered - all intersections
* @param filtered - filtered intersections
*/
public collectIntersectionsMetrics(
stakingModuleId: number,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,7 @@ export class StakingModuleGuardService {
depositRoot,
} = blockData;

const { isDepositsPaused, nonce, stakingModuleId } = stakingModuleData;

if (isDepositsPaused) {
this.logger.warn('Deposits are already paused', {
blockHash,
stakingModuleId,
});
return;
}
const { nonce, stakingModuleId } = stakingModuleData;

const signature = await this.securityService.signPauseData(
blockNumber,
Expand Down

0 comments on commit b892e98

Please sign in to comment.