Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
hive
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
47
Issues
47
List
Boards
Labels
Service Desk
Milestones
Merge Requests
13
Merge Requests
13
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
hive
hive
Commits
588ea1e1
Commit
588ea1e1
authored
Aug 05, 2020
by
Mariusz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The member `vote_percent` is removed from `effective_comment_vote_operation`
parent
703f571e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
libraries/chain/hive_evaluator.cpp
libraries/chain/hive_evaluator.cpp
+0
-4
libraries/protocol/include/hive/protocol/hive_virtual_operations.hpp
...rotocol/include/hive/protocol/hive_virtual_operations.hpp
+1
-2
No files found.
libraries/chain/hive_evaluator.cpp
View file @
588ea1e1
...
...
@@ -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
);
}
}
...
...
libraries/protocol/include/hive/protocol/hive_virtual_operations.hpp
View file @
588ea1e1
...
...
@@ -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
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment