Skip to content

Commit

Permalink
S4C Change Address Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tranz5 committed Sep 28, 2014
1 parent 0d442ec commit b64a201
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b64a201

Please sign in to comment.