MCPcopy Create free account
hub / github.com/ElementsProject/elements / IsEquivalentTo

Method IsEquivalentTo

src/wallet/transaction.cpp:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7namespace wallet {
8bool CWalletTx::IsEquivalentTo(const CWalletTx& _tx) const
9{
10 CMutableTransaction tx1 {*this->tx};
11 CMutableTransaction tx2 {*_tx.tx};
12 for (auto& txin : tx1.vin) txin.scriptSig = CScript();
13 for (auto& txin : tx2.vin) txin.scriptSig = CScript();
14 return CTransaction(tx1) == CTransaction(tx2);
15}
16
17bool CWalletTx::InMempool() const
18{

Callers 1

SyncMetaDataMethod · 0.80

Calls 2

CScriptClass · 0.70
CTransactionClass · 0.50

Tested by

no test coverage detected