if(status.hasFlag("Running") && status.hasFlag("Valid")) {
final RouterImpl router = updateOrCreateRouter(status, oldRouterByIdentity);
addRouter(router);
classifyRouter(router);
}
final Descriptor d = getDescriptorForRouterStatus(status, consensus.getFlavor() == ConsensusFlavor.MICRODESC);
if(d != null) {
d.setLastListed(consensus.getValidAfterTime().getTime());
}
}
logger.fine("Loaded "+ routersByIdentity.size() +" routers from consensus document");
currentConsensus = consensus;