From 2b6be2a65e174c1992fb474767c25de205860e30 Mon Sep 17 00:00:00 2001 From: Eric Frias Date: Mon, 10 Apr 2017 15:50:18 -0400 Subject: [PATCH] Verify all account ids on whitelist are valid accounts --- libraries/chain/tournament_evaluator.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/chain/tournament_evaluator.cpp b/libraries/chain/tournament_evaluator.cpp index 1f811290..94d64bf6 100644 --- a/libraries/chain/tournament_evaluator.cpp +++ b/libraries/chain/tournament_evaluator.cpp @@ -35,6 +35,11 @@ namespace graphene { namespace chain { FC_ASSERT(op.options.whitelist.size() < maximum_tournament_whitelist_length, "Whitelist must not be longer than ${maximum_tournament_whitelist_length}", ("maximum_tournament_whitelist_length", maximum_tournament_whitelist_length)); + + for (const account_id_type& account_id : op.options.whitelist) + { + account_id(d); + } if (op.options.start_time) {