Commit 53003549 authored by Bartek Wrona's avatar Bartek Wrona

- Fixed bad condition during processing data inside...

- Fixed bad condition during processing data inside `supplement_operations_visitor` leading replay process to crash
- New effective_comment_vote_operation field (pending_payout) shall be included in FC_REFLECT.
parent 4a993af1
......@@ -416,7 +416,7 @@ struct supplement_operations_visitor
return; //estimated payout was already calculated
const auto* cashout = _db.find_comment_cashout( _db.get_comment( op.author, op.permlink ) );
if( cashout == nullptr && cashout->net_rshares.value <= 0 )
if( cashout == nullptr || cashout->net_rshares.value <= 0 )
return; //voting can happen even after cashout; there will be no new payout though
const auto& props = _db.get_dynamic_global_properties();
......
......@@ -266,7 +266,7 @@ FC_REFLECT( hive::protocol::fill_order_operation, (current_owner)(current_orderi
FC_REFLECT( hive::protocol::fill_transfer_from_savings_operation, (from)(to)(amount)(request_id)(memo) )
FC_REFLECT( hive::protocol::hardfork_operation, (hardfork_id) )
FC_REFLECT( hive::protocol::comment_payout_update_operation, (author)(permlink) )
FC_REFLECT( hive::protocol::effective_comment_vote_operation, (voter)(author)(permlink)(weight)(rshares)(vote_percent) )
FC_REFLECT( hive::protocol::effective_comment_vote_operation, (voter)(author)(permlink)(weight)(rshares)(vote_percent)(pending_payout))
FC_REFLECT( hive::protocol::return_vesting_delegation_operation, (account)(vesting_shares) )
FC_REFLECT( hive::protocol::comment_benefactor_reward_operation, (benefactor)(author)(permlink)(hbd_payout)(hive_payout)(vesting_payout) )
FC_REFLECT( hive::protocol::producer_reward_operation, (producer)(vesting_shares) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment