poanetwork / posdao-contracts

Smart contracts for POSDAO (Proof of Stake Decentralized Autonomous Organization consensus), a DPOS consensus implemented in Solidity and running within EVM with swappable BFT consensus
Other
106 stars 50 forks source link

Fix isPoolInactive() #31

Closed DemiMarie closed 5 years ago

DemiMarie commented 5 years ago

It previously returned 0 both for a node that was not known to be inactive, and for the first inactive node.

afck commented 5 years ago

It actually looks like poolsInactive[index] != _who is already checked in all the call sites. Is this change necessary at all?