State-machine replication for planet-scale systems