19 , _account_dba(account_dba)
20 , _game_round_dba(game_round_dba)
21 , _hardfork_service(services.hardfork_property_service())
27 FC_ASSERT(_hardfork_service.
has_hardfork(SCORUM_HARDFORK_0_5),
"Hardfork #5 is required");
28 FC_ASSERT(!_hardfork_service.
has_hardfork(SCORUM_HARDFORK_0_6),
"Disabled since hardfork #6");
30 FC_ASSERT(_game_round_dba.is_exists_by<by_uuid>(op.
uuid), R
"(Round "${uuid}" must exist.)", ("uuid", op.
uuid));
31 FC_ASSERT(_account_dba.
is_exists_by<by_name>(op.
owner), R
"(Account "${owner}" must exist.)", ("owner", op.
owner));
33 auto&
round = _game_round_dba.get_by<by_uuid>(op.
uuid);
35 FC_ASSERT(
round.owner == op.
owner,
"${round.owner} != ${operation.owner}", (
"round.owner",
round.owner)(
"operation.owner", op.
owner));
37 _game_round_dba.update(
round, [&](
auto& obj){
39 fc::from_string(obj.vrf, op.
vrf);
40 fc::from_string(obj.proof, op.
proof);
bool is_exists_by(const Key &arg) const
void do_apply(const operation_type &op)
update_game_round_result_evaluator(data_service_factory_i &, dba::db_accessor< account_object > &, dba::db_accessor< game_round_object > &)
virtual bool has_hardfork(uint32_t hardfork) const =0
This operation update game round results.