Permalink
Browse files

Fix For S4C Write in Gui and Bump Versions

  • Loading branch information...
Tranz5 committed Aug 31, 2014
1 parent 6c76dbf commit 04ff115b6574c310a1959633ebed8e14ff78dd2a
Showing with 6 additions and 4 deletions.
  1. +4 −2 src/qt/walletmodel.cpp
  2. +1 −1 src/version.h
  3. +1 −1 src/wallet.h
View
@@ -389,12 +389,14 @@ void WalletModel::setStakeForCharity(bool fStakeForCharity, int& nStakeForCharit
if (wallet->fFileBacked) // Tranz add option to not save.
{
CWalletDB walletdb(wallet->strWalletFile);
if (wallet->fStakeForCharity) {
if (fStakeForCharity) {
walletdb.EraseStakeForCharity(wallet->strStakeForCharityAddress.ToString());
walletdb.WriteStakeForCharity(strStakeForCharityAddress.ToString(), nStakeForCharityPercent );
}
else
else {
walletdb.EraseStakeForCharity(wallet->strStakeForCharityAddress.ToString());
walletdb.EraseStakeForCharity(strStakeForCharityAddress.ToString());
}
if(fDebug)
printf("setStakeForCharity: %s %d\n", strStakeForCharityAddress.ToString().c_str(), nStakeForCharityPercent);
View
@@ -25,7 +25,7 @@ extern const std::string CLIENT_DATE;
static const int DATABASE_VERSION = 70501;
// network protocol versioning
static const int PROTOCOL_VERSION = 70005;
static const int PROTOCOL_VERSION = 70006;
// intial proto version, to be increased after version/verack negotiation
static const int INIT_PROTO_VERSION = 209;
View
@@ -43,7 +43,7 @@ enum WalletFeature
FEATURE_WALLETCRYPT = 40000, // wallet encryption
FEATURE_COMPRPUBKEY = 60000, // compressed public keys
FEATURE_LATEST = 60001
FEATURE_LATEST = 60002
};
class CWalletLockJob : public CTimerJob

0 comments on commit 04ff115

Please sign in to comment.