1
0
Fork 0
forked from lthn/blockchain

changed fields names one more time

This commit is contained in:
cryptozoidberg 2023-10-06 17:36:10 +02:00
parent 4762e39c77
commit 63354b91c3
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
2 changed files with 3 additions and 3 deletions

View file

@ -2847,7 +2847,7 @@ bool blockchain_storage::get_pos_votes(uint64_t start_index, uint64_t end_index,
for (const auto s_entry : summary)
{
r.votes.push_back(s_entry.second);
r.votes.back().proposal_name = s_entry.first;
r.votes.back().proposal_id = s_entry.first;
}
return true;

View file

@ -156,12 +156,12 @@ namespace currency
struct vote_on_proposal
{
std::string proposal_name;
std::string proposal_id;
uint64_t yes;
uint64_t no;
BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(proposal_name)
KV_SERIALIZE(proposal_id)
KV_SERIALIZE(yes)
KV_SERIALIZE(no)
END_KV_SERIALIZE_MAP()