We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 157bbd0 commit e9331cdCopy full SHA for e9331cd
src/wallet/transaction.cpp
@@ -13,8 +13,14 @@ bool CWalletTx::IsEquivalentTo(const CWalletTx& _tx) const
13
{
14
CMutableTransaction tx1 {*this->tx};
15
CMutableTransaction tx2 {*_tx.tx};
16
- for (auto& txin : tx1.vin) txin.scriptSig = CScript();
17
- for (auto& txin : tx2.vin) txin.scriptSig = CScript();
+ for (auto& txin : tx1.vin) {
+ txin.scriptSig = CScript();
18
+ txin.scriptWitness.SetNull();
19
+ }
20
+ for (auto& txin : tx2.vin) {
21
22
23
24
return CTransaction(tx1) == CTransaction(tx2);
25
}
26
0 commit comments