Commit 588ea1e1 authored by Mariusz's avatar Mariusz

The member `vote_percent` is removed from `effective_comment_vote_operation`

parent 703f571e
......@@ -1758,7 +1758,6 @@ void pre_hf20_vote_evaluator( const vote_operation& o, database& _db )
vop.weight = cv.weight;
vop.rshares = cv.rshares;
vop.vote_percent = cv.vote_percent;
});
if( max_vote_weight ) // Optimization
......@@ -1879,7 +1878,6 @@ void pre_hf20_vote_evaluator( const vote_operation& o, database& _db )
cv.rshares = rshares;
vop.rshares = rshares;
cv.vote_percent = o.weight;
vop.vote_percent = cv.weight;
cv.last_update = _db.head_block_time();
cv.weight = 0;
vop.weight = 0;
......@@ -2163,7 +2161,6 @@ void hf20_vote_evaluator( const vote_operation& o, database& _db )
effective_comment_vote_operation vop(o.voter, o.author, o.permlink);
vop.weight = newVote.weight;
vop.rshares = newVote.rshares;
vop.vote_percent = newVote.vote_percent;
_db.push_virtual_operation(vop);
......@@ -2271,7 +2268,6 @@ void hf20_vote_evaluator( const vote_operation& o, database& _db )
effective_comment_vote_operation vop(o.voter, o.author, o.permlink);
vop.weight = vote.weight;
vop.rshares = vote.rshares;
vop.vote_percent = vote.vote_percent;
_db.push_virtual_operation(vop);
}
}
......
......@@ -163,7 +163,6 @@ namespace hive { namespace protocol {
string permlink;
uint64_t weight = 0; ///< defines the score this vote receives, used by vote payout calc. 0 if a negative vote or changed votes.
int64_t rshares = 0; ///< The number of rshares this vote is responsible for
int16_t vote_percent = 0;
//potential payout of related comment at the moment of this vote
asset pending_payout = asset( 0, HBD_SYMBOL ); //supplemented by account history RocksDB plugin (needed by HiveMind)
};
......@@ -272,7 +271,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)(pending_payout))
FC_REFLECT( hive::protocol::effective_comment_vote_operation, (voter)(author)(permlink)(weight)(rshares)(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