aboutsummaryrefslogtreecommitdiff
path: root/src/core.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-07-17 14:09:55 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-07-21 07:46:34 +0200
commit98e84aae7ad1e4e18d2292f1ddeeb517432b4c42 (patch)
tree46c8cb4086d1a873b77e03d59e1b56f712b7ae2a /src/core.cpp
parent3015e0bca6bc2cb8beb747873fdf7b80e74d679f (diff)
downloadbitcoin-98e84aae7ad1e4e18d2292f1ddeeb517432b4c42.tar.xz
Revert "Relay double-spends, subject to anti-DOS"
This reverts commit d640a3ceab4f4372c2a0f738c1286cfde4b41b50.
Diffstat (limited to 'src/core.cpp')
-rw-r--r--src/core.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/core.cpp b/src/core.cpp
index b56994ecf3..149b3532a1 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;