diff --git a/src/CryptoNoteCore/BlockchainCache.cpp b/src/CryptoNoteCore/BlockchainCache.cpp index 33aafae..483cebb 100644 --- a/src/CryptoNoteCore/BlockchainCache.cpp +++ b/src/CryptoNoteCore/BlockchainCache.cpp @@ -1,6 +1,6 @@ // Copyright (c) 2012-2017, The CryptoNote developers, The Bytecoin developers // Copyright (c) 2018-2019, The Bittorium developers -// Copyright (c) 2019, The Talleo developers +// Copyright (c) 2019-2024, The Talleo developers // // This file is part of Bytecoin. // @@ -270,8 +270,9 @@ std::unique_ptr BlockchainCache::split(uint32_t splitBlockInde splitKeyOutputsGlobalIndexes(*newCache, splitBlockIndex); fixChildrenParent(newCache.get()); - newCache->children = children; - children = { newCache.get() }; + newCache->children = std::move(children); + children.clear(); + children.push_back(newCache.get()); logger(Logging::DEBUGGING) << "Split successfully completed"; return std::move(newCache);