Eritrea has accepted an olive branch from neighboring Ethiopia, setting the stage to end a decades-long military standoff and bring closure to a war that killed tens of thousands of people.