diff --git a/README.md b/README.md index e838ba0cf..9ca7a4c5a 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Scrypt Proof of Work 1 Minute Block Targets, 4 Hour Diff Readjustments -Special reward system: Random block rewards +Special reward system: Random block rewards before block 145,000. Static block reward of 250,00 afterwards. 1-100,000: 0-1,000,000 Dogecoin Reward diff --git a/src/init.cpp b/src/init.cpp index a9e8eddaa..e89789076 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -303,7 +303,7 @@ std::string HelpMessage() " -pid= " + _("Specify pid file (default: dogecoind.pid)") + "\n" + " -gen " + _("Generate coins (default: 0)") + "\n" + " -datadir= " + _("Specify data directory") + "\n" + - " -wallet= " + _("Specify wallet file (within data directory)") + "\n"; + " -wallet= " + _("Specify wallet file (within data directory)") + "\n" + " -dbcache= " + _("Set database cache size in megabytes (default: 100)") + "\n" + " -timeout= " + _("Specify connection timeout in milliseconds (default: 5000)") + "\n" + " -proxy= " + _("Connect through socks proxy") + "\n" + diff --git a/src/mac/Info.plist b/src/mac/Info.plist index 98bbd75fe..8b631e637 100644 --- a/src/mac/Info.plist +++ b/src/mac/Info.plist @@ -14,9 +14,9 @@ CFBundleShortVersionString - 1.5.2 + 1.6.0 CFBundleVersion - 1.5.2 + 1.6.0 NSPrincipalClass NSApplication CFBundleIconFile diff --git a/src/wallet.cpp b/src/wallet.cpp index 3e9da77e8..8b1c6c56b 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -664,27 +664,13 @@ void CWalletTx::GetAmounts(list >& listReceived, nFee = nDebit - nValueOut; } - if (!fMineCached) - vfMine.resize(vout.size()); - // Sent/received. for (unsigned int i = 0; i < vout.size(); i++) { const CTxOut &txout = vout[i]; bool isMine = false; bool warnUnkownTX = false; - if (!fMineCached) { - address = CNoDestination(); - warnUnkownTX = !ExtractDestinationAndMine(*pwallet, txout.scriptPubKey, address, &isMine); - vfMine[i] = isMine; - } - else { - if (vfMine[i]) { - isMine = true; // already know this is ours, just fetch address - address = CNoDestination(); - warnUnkownTX = !ExtractDestination(txout.scriptPubKey, address); - } - } + warnUnkownTX = !ExtractDestinationAndMine(*pwallet, txout.scriptPubKey, address, &isMine); if (warnUnkownTX) { printf("CWalletTx::GetAmounts: Unknown transaction type found, txid %s\n", this->GetHash().ToString().c_str()); } @@ -699,8 +685,6 @@ void CWalletTx::GetAmounts(list >& listReceived, if (isMine) listReceived.push_back(make_pair(address, txout.nValue)); } - - fMineCached = true; } void CWalletTx::GetAccountAmounts(const string& strAccount, int64& nReceived, diff --git a/src/wallet.h b/src/wallet.h index bcce10c96..d5f9bb783 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -384,8 +384,6 @@ public: int64 nOrderPos; // position in ordered transaction list // memory only - mutable std::vector vfMine; // which outputs are mine - mutable bool fMineCached; mutable bool fDebitCached; mutable bool fCreditCached; mutable bool fImmatureCreditCached; @@ -429,8 +427,6 @@ public: fFromMe = false; strFromAccount.clear(); vfSpent.clear(); - vfMine.clear(); - fMineCached = false; fDebitCached = false; fCreditCached = false; fImmatureCreditCached = false; @@ -524,8 +520,6 @@ public: // make sure balances are recalculated void MarkDirty() { - vfMine.clear(); - fMineCached = false; fCreditCached = false; fAvailableCreditCached = false; fDebitCached = false;