The order of the Junta not to proceed to the Viceroyalty of Peru was a de facto truce that would last while not attacking Goyeneche. Castelli tried to turn the situation into a formal agreement, which would imply recognition of the Junta as a legitimate interlocutor. Goyeneche agreed to sign an armistice for 40 days until Lima was issued, and used that time to be strengthened. 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.