#308 - get cur_active_sons as copy, not reference

This commit is contained in:
Vlad Dobromyslov 2022-04-04 11:20:22 +03:00
parent 0d74fcf675
commit 550727757f

View file

@ -804,7 +804,7 @@ void database::update_active_sons()
// Compare current and to-be lists of active sons
const auto& cur_active_sons = gpo.active_sons;
const auto cur_active_sons = gpo.active_sons;
flat_map<sidechain_type, vector<son_info> > new_active_sons;
const auto &acc = get(gpo.parameters.son_account());
for( const auto& sidechain_sons : sons ){