Skip to content

Commit 4488e14

Browse files
victorgesyondonfu
authored andcommitted
contracts/bm: Only add to pool if isRegisteredTranscoder
1 parent ad04d8c commit 4488e14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/bonding/BondingManager.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,7 @@ contract BondingManager is ManagerProxyTarget, IBondingManager {
13341334
if (isActiveInNextRound) {
13351335
transcoderPool.updateKey(_delegate, newStake, _newPosPrev, _newPosNext);
13361336
nextRoundTotalActiveStake = nextRoundTotalActiveStake.add(_amount);
1337-
} else {
1337+
} else if (isRegisteredTranscoder(_delegate)) {
13381338
// Otherwise, check if it is eligible to join the active set. This will already handle updating the
13391339
// earning pools and next round total active stakein case it does join the pool.
13401340
tryToJoinActiveSet(_delegate, newStake, nextRound, _newPosPrev, _newPosNext);

0 commit comments

Comments
 (0)