forked from lthn/blockchain
changed fields names
This commit is contained in:
parent
bdb5af0490
commit
4762e39c77
2 changed files with 6 additions and 6 deletions
|
|
@ -2839,9 +2839,9 @@ bool blockchain_storage::get_pos_votes(uint64_t start_index, uint64_t end_index,
|
|||
for (const auto& v : votes)
|
||||
{
|
||||
if (v.second)
|
||||
summary[v.first].vote_1++;
|
||||
summary[v.first].yes++;
|
||||
else
|
||||
summary[v.first].vote_0++;
|
||||
summary[v.first].no++;
|
||||
}
|
||||
}
|
||||
for (const auto s_entry : summary)
|
||||
|
|
|
|||
|
|
@ -157,13 +157,13 @@ namespace currency
|
|||
struct vote_on_proposal
|
||||
{
|
||||
std::string proposal_name;
|
||||
uint64_t vote_1;
|
||||
uint64_t vote_0;
|
||||
uint64_t yes;
|
||||
uint64_t no;
|
||||
|
||||
BEGIN_KV_SERIALIZE_MAP()
|
||||
KV_SERIALIZE(proposal_name)
|
||||
KV_SERIALIZE(vote_1)
|
||||
KV_SERIALIZE(vote_0)
|
||||
KV_SERIALIZE(yes)
|
||||
KV_SERIALIZE(no)
|
||||
END_KV_SERIALIZE_MAP()
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue