Skip to content

Commit

Permalink
[L-02] removed redundant check in certified function
Browse files Browse the repository at this point in the history
  • Loading branch information
axel-muller committed Jan 21, 2025
1 parent a19c17e commit 5a1ae69
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions contracts/CertifierHbbft.sol
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,6 @@ contract CertifierHbbft is Initializable, OwnableUpgradeable, ICertifier {
}

address stakingAddress = validatorSetContract.stakingByMiningAddress(_who);
if (stakingAddress == address(0)) {
//if there is no staking address registered to this pool
return false;
}

// we generally certify every active node,
// since the node cache the list of certifiers
// and the permission contracts checks anyway,
// if the specific 0 gas transaction is allowed or not.
// IStakingHbbft stakingContract = IStakingHbbft(
// validatorSetContract.getStakingContract()
// );
return stakingAddress != address(0);
}

Expand Down

0 comments on commit 5a1ae69

Please sign in to comment.