From 5a1ae6978d8b11ead64554c316794c2a40b925b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20M=C3=BCller?= Date: Tue, 21 Jan 2025 22:34:54 +0300 Subject: [PATCH] [L-02] removed redundant check in certified function --- contracts/CertifierHbbft.sol | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/contracts/CertifierHbbft.sol b/contracts/CertifierHbbft.sol index d0afd29..1a0d9f9 100644 --- a/contracts/CertifierHbbft.sol +++ b/contracts/CertifierHbbft.sol @@ -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); }