| 10 | |
| 11 | namespace wallet { |
| 12 | bool CWalletTx::IsEquivalentTo(const CWalletTx& _tx) const |
| 13 | { |
| 14 | CMutableTransaction tx1 {*this->tx}; |
| 15 | CMutableTransaction tx2 {*_tx.tx}; |
| 16 | for (auto& txin : tx1.vin) { |
| 17 | txin.scriptSig = CScript(); |
| 18 | txin.scriptWitness.SetNull(); |
| 19 | } |
| 20 | for (auto& txin : tx2.vin) { |
| 21 | txin.scriptSig = CScript(); |
| 22 | txin.scriptWitness.SetNull(); |
| 23 | } |
| 24 | return CTransaction(tx1) == CTransaction(tx2); |
| 25 | } |
| 26 | |
| 27 | bool CWalletTx::InMempool() const |
| 28 | { |
no test coverage detected