From afd22025d742963b3715e88a19a53cf12752a77a Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Sun, 8 Sep 2013 14:09:49 -0700 Subject: [PATCH] No need to compare a transaction set to itself. --- modules/ripple_app/consensus/ripple_LedgerConsensus.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/ripple_app/consensus/ripple_LedgerConsensus.cpp b/modules/ripple_app/consensus/ripple_LedgerConsensus.cpp index 519ff3aed..8c68c5e26 100644 --- a/modules/ripple_app/consensus/ripple_LedgerConsensus.cpp +++ b/modules/ripple_app/consensus/ripple_LedgerConsensus.cpp @@ -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);