mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Make CMutableTransaction constructor explicit
Silently converting to a CMutableTransaction will drop all caches and should thus be done explicitly
This commit is contained in:
parent
f82e1c9482
commit
faab55fbb1
7 changed files with 12 additions and 12 deletions
|
|
@ -2065,8 +2065,8 @@ bool CWalletTx::IsTrusted() const
|
|||
|
||||
bool CWalletTx::IsEquivalentTo(const CWalletTx& _tx) const
|
||||
{
|
||||
CMutableTransaction tx1 = *this->tx;
|
||||
CMutableTransaction tx2 = *_tx.tx;
|
||||
CMutableTransaction tx1 {*this->tx};
|
||||
CMutableTransaction tx2 {*_tx.tx};
|
||||
for (auto& txin : tx1.vin) txin.scriptSig = CScript();
|
||||
for (auto& txin : tx2.vin) txin.scriptSig = CScript();
|
||||
return CTransaction(tx1) == CTransaction(tx2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue