aboutsummaryrefslogtreecommitdiff
path: root/src/core.cpp
diff options
context:
space:
mode:
authorKamil Domanski <kdomanski@kdemail.net>2014-05-13 20:58:25 +0200
committerKamil Domanski <kdomanski@kdemail.net>2014-05-20 14:58:21 +0200
commitf4057cb749f4c0d04bf936805ff8aa5678b9c6f2 (patch)
tree0bb779f24caf02f819ad4004883d747786cfdec4 /src/core.cpp
parent0e31e5631c279353564f6407b8950b1224cf5b9f (diff)
downloadbitcoin-f4057cb749f4c0d04bf936805ff8aa5678b9c6f2.tar.xz
remove CTransaction::IsNewerThan which is never used
Diffstat (limited to 'src/core.cpp')
-rw-r--r--src/core.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/core.cpp b/src/core.cpp
index 7651ce9957..aadcb44b98 100644
--- a/src/core.cpp
+++ b/src/core.cpp
@@ -77,35 +77,6 @@ uint256 CTransaction::GetHash() const
return SerializeHash(*this);
}
-bool CTransaction::IsNewerThan(const CTransaction& old) const
-{
- if (vin.size() != old.vin.size())
- return false;
- for (unsigned int i = 0; i < vin.size(); i++)
- if (vin[i].prevout != old.vin[i].prevout)
- return false;
-
- bool fNewer = false;
- unsigned int nLowest = std::numeric_limits<unsigned int>::max();
- for (unsigned int i = 0; i < vin.size(); i++)
- {
- if (vin[i].nSequence != old.vin[i].nSequence)
- {
- if (vin[i].nSequence <= nLowest)
- {
- fNewer = false;
- nLowest = vin[i].nSequence;
- }
- if (old.vin[i].nSequence < nLowest)
- {
- fNewer = true;
- nLowest = old.vin[i].nSequence;
- }
- }
- }
- return fNewer;
-}
-
int64_t CTransaction::GetValueOut() const
{
int64_t nValueOut = 0;