From 962e9f0180b66df2edf3a3f5f0909e8fb5b10c2f Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 22 Aug 2012 05:17:23 -0700 Subject: [PATCH] Type comparison is handled in higher-level code and not needed at the bottom. --- src/TransactionMeta.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TransactionMeta.cpp b/src/TransactionMeta.cpp index 60dc768c59..93f89652ef 100644 --- a/src/TransactionMeta.cpp +++ b/src/TransactionMeta.cpp @@ -91,8 +91,8 @@ Json::Value TMNEAmount::getJson(int v) const int TMNEAmount::compare(const TransactionMetaNodeEntry& e) const { - assert(getType() != e.getType()); - return getType() - e.getType(); + assert(false); // can't be two changed amounts of same type + return 0; } TMNEAccount::TMNEAccount(int type, SerializerIterator& sit) : TransactionMetaNodeEntry(type)