Permalink
Browse files

S4C Change Address Fix

  • Loading branch information...
Tranz5 committed Sep 28, 2014
1 parent 0d442ec commit b64a201969532e475c0eb0afab19f5106a9a3977
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/wallet.cpp
@@ -1490,8 +1490,7 @@ bool CWallet::CreateTransaction(const vector<pair<CScript, int64> >& vecSend, CW
CScript scriptChange;
// Stake For Charity: send change to custom address
if (fAllowS4C) {
if (strStakeForCharityChangeAddress.IsValid())
if (fAllowS4C && strStakeForCharityChangeAddress.IsValid()) {
scriptChange.SetDestination(strStakeForCharityChangeAddress.Get());
}
// coin control: send change to custom address

0 comments on commit b64a201

Please sign in to comment.