mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix a bug that, under rare circumstances, could lead to SHAMap corruption
This commit is contained in:
@@ -540,6 +540,7 @@ bool SHAMap::delItem(const uint256& id)
|
||||
SHAMapItem::pointer item = onlyBelow(node.get());
|
||||
if (item)
|
||||
{
|
||||
returnNode(node, true);
|
||||
eraseChildren(node);
|
||||
#ifdef ST_DEBUG
|
||||
std::cerr << "Making item node " << *node << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user