Merge #8664: Fix segwit-related wallet bug

c40b034 Clear witness with vin/vout in CWallet::CreateTransaction() (Suhas Daftuar)
This commit is contained in:
Wladimir J. van der Laan 2016-09-09 12:24:30 +02:00
commit 2abfe5956e
No known key found for this signature in database
GPG key ID: 74810B012346C9A6

View file

@ -2215,6 +2215,7 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wt
nChangePosInOut = nChangePosRequest; nChangePosInOut = nChangePosRequest;
txNew.vin.clear(); txNew.vin.clear();
txNew.vout.clear(); txNew.vout.clear();
txNew.wit.SetNull();
wtxNew.fFromMe = true; wtxNew.fFromMe = true;
bool fFirst = true; bool fFirst = true;