diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-25 16:11:39 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-25 16:19:54 +0200 |
commit | 0f1040ba5213bde402e8ac9c1e4da91ca319c9de (patch) | |
tree | ac50062f0b1a6a328e96e5280b725f832271945d /src/core.cpp | |
parent | 526711503a7ad4de6d2e569d0c35a1cd6654e742 (diff) | |
parent | f40dbeedde3a6a73c13b0241258cf23248db1de1 (diff) | |
download | bitcoin-0f1040ba5213bde402e8ac9c1e4da91ca319c9de.tar.xz |
Merge pull request #4183
f40dbee remove CPubKey::VerifyCompact( ) which is never used (Kamil Domanski)
28b6c1d remove GetMedianTime( ) which is never used (Kamil Domanski)
5bd4adc remove LookupHostNumeric( ) which is never used (Kamil Domanski)
595f691 remove LogException( ) which is never used (Kamil Domanski)
f4057cb remove CTransaction::IsNewerThan which is never used (Kamil Domanski)
0e31e56 remove CWallet::AddReserveKey which is never used (Kamil Domanski)
Diffstat (limited to 'src/core.cpp')
-rw-r--r-- | src/core.cpp | 29 |
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; |