Payout operation fix

This commit is contained in:
Peter Conrad 2018-05-03 22:35:10 +02:00 committed by Fabian Schuh
parent b40e823875
commit 9e624bd2c8
No known key found for this signature in database
GPG key ID: F2538A4B282D6238

View file

@ -85,8 +85,9 @@ namespace graphene { namespace chain {
{
for( const auto& entry : accumulator )
{
_db.adjust_balance( entry.first, asset( entry.second, payout_asset ) );
_db.push_applied_operation( affiliate_payout_operation( entry.first, tag, entry.second ) );
asset payout = asset( entry.second, payout_asset );
_db.adjust_balance( entry.first, payout );
_db.push_applied_operation( affiliate_payout_operation( entry.first, tag, payout ) );
}
accumulator.clear();
}