#319 - fix get_bitcoin_vote_id
This commit is contained in:
parent
a60a4d4495
commit
b8ada6b529
1 changed files with 2 additions and 2 deletions
|
|
@ -2200,7 +2200,7 @@ votes_info database_api_impl::get_votes(const string &account_name_or_id) const
|
|||
votes_for_sons[sidechain_type::hive].reserve(son_hive_ids.size());
|
||||
for (const auto &son : son_hive_ids) {
|
||||
const auto &son_obj = son.as<son_object>(6);
|
||||
votes_for_sons[sidechain_type::hive].emplace_back(votes_info_object{son_obj.get_bitcoin_vote_id(), son_obj.id});
|
||||
votes_for_sons[sidechain_type::hive].emplace_back(votes_info_object{son_obj.get_hive_vote_id(), son_obj.id});
|
||||
}
|
||||
}
|
||||
result.votes_for_sons = std::move(votes_for_sons);
|
||||
|
|
@ -2379,7 +2379,7 @@ voters_info database_api_impl::get_voters(const string &account_name_or_id) cons
|
|||
for (const auto& vote_id : son_object->sidechain_vote_ids) {
|
||||
const auto &son_voters = get_voters_by_id(vote_id.second);
|
||||
voters_info_object voters_for_sidechain_son;
|
||||
voters_for_sidechain_son.vote_id = son_object->get_bitcoin_vote_id();
|
||||
voters_for_sidechain_son.vote_id = vote_id.second;
|
||||
voters_for_sidechain_son.voters.reserve(son_voters.size());
|
||||
for (const auto &voter : son_voters) {
|
||||
voters_for_sidechain_son.voters.emplace_back(voter.get_id());
|
||||
|
|
|
|||
Loading…
Reference in a new issue