Payout operation fix
This commit is contained in:
parent
b40e823875
commit
9e624bd2c8
1 changed files with 3 additions and 2 deletions
|
|
@ -85,8 +85,9 @@ namespace graphene { namespace chain {
|
||||||
{
|
{
|
||||||
for( const auto& entry : accumulator )
|
for( const auto& entry : accumulator )
|
||||||
{
|
{
|
||||||
_db.adjust_balance( entry.first, asset( entry.second, payout_asset ) );
|
asset payout = asset( entry.second, payout_asset );
|
||||||
_db.push_applied_operation( affiliate_payout_operation( entry.first, tag, entry.second ) );
|
_db.adjust_balance( entry.first, payout );
|
||||||
|
_db.push_applied_operation( affiliate_payout_operation( entry.first, tag, payout ) );
|
||||||
}
|
}
|
||||||
accumulator.clear();
|
accumulator.clear();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue