Permalink
Browse files

Remove CTransaction::IsNewerThan which is never used

  • Loading branch information...
Tranz5 committed Aug 25, 2014
1 parent 5d77005 commit 07afab2d72b81397c0a76820c3e6856b70e169f2
Showing with 0 additions and 29 deletions.
  1. +0 −29 src/main.h
@@ -506,35 +506,6 @@ class CTransaction
return SerializeHash(*this);
}
bool 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;
}
bool IsCoinBase() const
{
return (vin.size() == 1 && vin[0].prevout.IsNull() && vout.size() >= 1);

0 comments on commit 07afab2

Please sign in to comment.