In service_node_list::store we have a small loop that resets the data_for_serialization
for (data_for_serialization* serialize_entry : data) {
if (serialize_entry->version != serialize_version)
m_transient.state_added_to_archive = true;
serialize_entry->version = serialize_version;
serialize_entry->clear();
}
Which calls clear after serialize_entry->version = serialize_version. The clear resets the version back to 0 causing the SNL in stagenet to rescan every time because the version nevers ends up being saved as v1.
I've moved the version assignment to after the clear to fix that.
… it is updated
In
service_node_list::store
we have a small loop that resets thedata_for_serialization
Which calls
clear
afterserialize_entry->version = serialize_version
. Theclear
resets the version back to0
causing the SNL in stagenet to rescan every time because the version nevers ends up being saved as v1.I've moved the version assignment to after the clear to fix that.