Skip to content

Commit 2abfe59

Browse files
committed
Merge #8664: Fix segwit-related wallet bug
c40b034 Clear witness with vin/vout in CWallet::CreateTransaction() (Suhas Daftuar)
2 parents 6423116 + c40b034 commit 2abfe59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2215,6 +2215,7 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wt
22152215
nChangePosInOut = nChangePosRequest;
22162216
txNew.vin.clear();
22172217
txNew.vout.clear();
2218+
txNew.wit.SetNull();
22182219
wtxNew.fFromMe = true;
22192220
bool fFirst = true;
22202221

0 commit comments

Comments
 (0)