Skip to content

Commit

Permalink
Respect strFromAccount in CreateTransaction.
Browse files Browse the repository at this point in the history
  • Loading branch information
sproxet committed Nov 25, 2023
1 parent b0b12d2 commit a149ca0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4728,7 +4728,10 @@ bool CWallet::CreateTransaction(const std::vector<CRecipient>& vecSend, CWalletT

nFeeRet = -1;
strFailReason = "";

std::string strFromAccount = wtxNew.strFromAccount;
wtxNew = CWalletTx();
wtxNew.strFromAccount = strFromAccount;

CAmount nRequired = 0;
size_t nConstantSize = 4 + // version
Expand Down

0 comments on commit a149ca0

Please sign in to comment.