Verify all account ids on whitelist are valid accounts

This commit is contained in:
Eric Frias 2017-04-10 15:50:18 -04:00
parent a74e66dd24
commit 2b6be2a65e

View file

@ -36,6 +36,11 @@ namespace graphene { namespace chain {
"Whitelist must not be longer than ${maximum_tournament_whitelist_length}", "Whitelist must not be longer than ${maximum_tournament_whitelist_length}",
("maximum_tournament_whitelist_length", 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) if (op.options.start_time)
{ {
FC_ASSERT(!op.options.start_delay, "Cannot specify both a fixed start time and a delay"); FC_ASSERT(!op.options.start_delay, "Cannot specify both a fixed start time and a delay");