1
0
Fork 0
forked from lthn/blockchain

changed fields names

This commit is contained in:
cryptozoidberg 2023-10-06 15:03:57 +02:00
parent bdb5af0490
commit 4762e39c77
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
2 changed files with 6 additions and 6 deletions

View file

@ -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)

View file

@ -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()
};