The peace treaty which ended the war was signed in Pretoria on August 3 , 1881 at the Pretoria Convention . The peace treaty which ended the war was signed in Pretoria on 3 August 1881 at the Pretoria Convention .