mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
No need to compare a transaction set to itself.
This commit is contained in:
@@ -292,6 +292,9 @@ bool LedgerConsensus::stillNeedTXSet (uint256 const& hash)
|
||||
|
||||
void LedgerConsensus::createDisputes (SHAMap::ref m1, SHAMap::ref m2)
|
||||
{
|
||||
if (m1->getHash() == m2->getHash())
|
||||
return;
|
||||
|
||||
WriteLog (lsDEBUG, LedgerConsensus) << "createDisputes " << m1->getHash() << " to " << m2->getHash();
|
||||
SHAMap::Delta differences;
|
||||
m1->compare (m2, differences, 16384);
|
||||
|
||||
Reference in New Issue
Block a user