Disalbe excessive logging, fix a bug that was preventing a game from ending
even after all reveal moves moves were made
This commit is contained in:
parent
2320be1f55
commit
a00b6cc8a1
2 changed files with 2 additions and 2 deletions
|
|
@ -898,7 +898,7 @@ void schedule_pending_dividend_balances(database& db,
|
|||
fc::uint128_t amount_to_credit(delta_balance.value);
|
||||
amount_to_credit *= holder_balance_object.balance.value;
|
||||
amount_to_credit /= total_balance_of_dividend_asset.value;
|
||||
wdump((delta_balance.value)(holder_balance_object.balance)(total_balance_of_dividend_asset));
|
||||
//wdump((delta_balance.value)(holder_balance_object.balance)(total_balance_of_dividend_asset));
|
||||
share_type shares_to_credit((int64_t)amount_to_credit.to_uint64());
|
||||
|
||||
remaining_amount_to_distribute -= shares_to_credit;
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ namespace graphene { namespace chain {
|
|||
|
||||
const rock_paper_scissors_game_details& game_details = game_obj->game_details.get<rock_paper_scissors_game_details>();
|
||||
for (unsigned i = 0; i < game_details.commit_moves.size(); ++i)
|
||||
if (!game_details.reveal_moves[i] && i != this_reveal_index)
|
||||
if (game_details.commit_moves[i] && !game_details.reveal_moves[i] && i != this_reveal_index)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue