diff --git a/src/currency_core/blockchain_storage.cpp b/src/currency_core/blockchain_storage.cpp index 354e765a..065da7ef 100644 --- a/src/currency_core/blockchain_storage.cpp +++ b/src/currency_core/blockchain_storage.cpp @@ -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) diff --git a/src/currency_core/blockchain_storage_basic.h b/src/currency_core/blockchain_storage_basic.h index eaa34c47..190a247e 100644 --- a/src/currency_core/blockchain_storage_basic.h +++ b/src/currency_core/blockchain_storage_basic.h @@ -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() };