From 550727757f763af014fc6ea08f2c20cc8a5f6881 Mon Sep 17 00:00:00 2001 From: Vlad Dobromyslov Date: Mon, 4 Apr 2022 11:20:22 +0300 Subject: [PATCH] #308 - get cur_active_sons as copy, not reference --- libraries/chain/db_maint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/chain/db_maint.cpp b/libraries/chain/db_maint.cpp index 632415ce..d6f830ea 100644 --- a/libraries/chain/db_maint.cpp +++ b/libraries/chain/db_maint.cpp @@ -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 > new_active_sons; const auto &acc = get(gpo.parameters.son_account()); for( const auto& sidechain_sons : sons ){