 Goyeneche agreed to sign an armistice for 40 days to allow time for Lima to ratify the agreement, but he actually used the time to reinforce his army.On 19 June, with the truce still in effect, an advanced royalist troop attacked positions at Juraicoragua.Castelli declared the truce broken and declared war on Peru.