From 0ebcf00ae01213ca5fedf4b42f3c97e5d1086f44 Mon Sep 17 00:00:00 2001 From: Eric Frias Date: Wed, 2 Nov 2016 10:57:39 -0400 Subject: [PATCH] Fix tournament end_time not set bug #20 --- libraries/chain/tournament_object.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/chain/tournament_object.cpp b/libraries/chain/tournament_object.cpp index 52fb7ba3..a8dc0eb5 100644 --- a/libraries/chain/tournament_object.cpp +++ b/libraries/chain/tournament_object.cpp @@ -254,6 +254,8 @@ namespace graphene { namespace chain { fc_ilog(fc::logger::get("tournament"), "Tournament ${id} is complete", ("id", fsm.tournament_obj->id)); + tournament_object& tournament = *fsm.tournament_obj; + tournament.end_time = event.db.head_block_time(); } };