Fixed pruning logic
- Erase an element from m_blocksByHeight only if it's empty - Remove blocks from unconnected alternative chains too when they get old enough (4xPPLNS window)
This commit is contained in:
@@ -343,6 +343,8 @@ int PoolBlock::deserialize(const uint8_t* data, size_t size, SideChain& sidechai
|
||||
m_broadcasted = false;
|
||||
m_wantBroadcast = false;
|
||||
|
||||
m_localTimestamp = time(nullptr);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user