From 98e84aae7ad1e4e18d2292f1ddeeb517432b4c42 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Thu, 17 Jul 2014 14:09:55 +0200 Subject: Revert "Relay double-spends, subject to anti-DOS" This reverts commit d640a3ceab4f4372c2a0f738c1286cfde4b41b50. --- src/core.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/core.cpp') diff --git a/src/core.cpp b/src/core.cpp index b56994ecf..149b3532a 100644 --- a/src/core.cpp +++ b/src/core.cpp @@ -124,22 +124,6 @@ CTransaction& CTransaction::operator=(const CTransaction &tx) { return *this; } -bool CTransaction::IsEquivalentTo(const CTransaction& tx) const -{ - if (nVersion != tx.nVersion || - nLockTime != tx.nLockTime || - vin.size() != tx.vin.size() || - vout != tx.vout) - return false; - for (unsigned int i = 0; i < vin.size(); i++) - { - if (vin[i].nSequence != tx.vin[i].nSequence || - vin[i].prevout != tx.vin[i].prevout) - return false; - } - return true; -} - int64_t CTransaction::GetValueOut() const { int64_t nValueOut = 0; -- cgit v1.2.3