should this be inside the lock where it gets the reversePeers? Otherwise the state can change its peers and this wouldn't know it.