OSDN Git Service
(root)
/
monacoin
/
monacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba9e91e
)
If requested, actually treat uncomfirmed change as being uncomfirmed
author
monacoinproject
<monacoinproject@gmail.com>
Sun, 6 Apr 2014 15:39:00 +0000
(
00:39
+0900)
committer
monacoinproject
<monacoinproject@gmail.com>
Sun, 6 Apr 2014 15:39:00 +0000
(
00:39
+0900)
This commit strengthens
1bbca24
by updating the CWalletTx::IsConfirmed()
function.
If (bSpendZeroConfChange==false), then IsConfirmed() should actually
treat unconfirmed change as being unconfirmed.
src/wallet.h
patch
|
blob
|
history
diff --git
a/src/wallet.h
b/src/wallet.h
index
d7e5c56
..
b2cf752
100644
(file)
--- a/
src/wallet.h
+++ b/
src/wallet.h
@@
-646,7
+646,7
@@
public:
return false;
if (GetDepthInMainChain() >= 1)
return true;
- if (!IsFromMe()) // using wtx's cached debit
+ if (!
bSpendZeroConfChange || !
IsFromMe()) // using wtx's cached debit
return false;
// If no confirmations but it's from us, we can still