diff options
author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2009-10-29 02:52:48 +0000 |
---|---|---|
committer | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2009-10-29 02:52:48 +0000 |
commit | cc0b4c3b62367a2aebe5fc1f4d0ed4b97e9c2ac9 (patch) | |
tree | 08535edfd634944708c936fd596f3719ccf191d8 /main.h | |
parent | 6ccefea62ae5644c9b318234c6a8a6c077d00922 (diff) |
addr relaying fixes, proxy option and privacy patches, detect connect to self, non-final tx locktime changes, fix hide unconfirmed generated
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -366,7 +366,7 @@ public: int nVersion;
vector<CTxIn> vin;
vector<CTxOut> vout;
- int nLockTime;
+ unsigned int nLockTime;
CTransaction()
@@ -401,9 +401,15 @@ public: return SerializeHash(*this);
}
- bool IsFinal() const
+ bool IsFinal(int64 nBlockTime=0) const
{
- if (nLockTime == 0 || nLockTime < nBestHeight)
+ // Time based nLockTime implemented in 0.1.6,
+ // do not use time based until most 0.1.5 nodes have upgraded.
+ if (nBlockTime == 0)
+ nBlockTime = GetAdjustedTime();
+ if (nLockTime == 0)
+ return true;
+ if (nLockTime < (nLockTime < 500000000 ? nBestHeight : nBlockTime))
return true;
foreach(const CTxIn& txin, vin)
if (!txin.IsFinal())
@@ -686,8 +692,9 @@ public: char fSpent;
//// probably need to sign the order info so know it came from payer
- // memory only
+ // memory only UI hints
mutable unsigned int nTimeDisplayed;
+ mutable int nLinesDisplayed;
CWalletTx()
@@ -712,6 +719,7 @@ public: fFromMe = false;
fSpent = false;
nTimeDisplayed = 0;
+ nLinesDisplayed = 0;
}
IMPLEMENT_SERIALIZE
|