File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -87,15 +87,6 @@ CTransaction& CTransaction::operator=(const CTransaction &tx) {
87
87
return *this ;
88
88
}
89
89
90
- bool CTransaction::IsEquivalentTo (const CTransaction& tx) const
91
- {
92
- CMutableTransaction tx1 = *this ;
93
- CMutableTransaction tx2 = tx;
94
- for (unsigned int i = 0 ; i < tx1.vin .size (); i++) tx1.vin [i].scriptSig = CScript ();
95
- for (unsigned int i = 0 ; i < tx2.vin .size (); i++) tx2.vin [i].scriptSig = CScript ();
96
- return CTransaction (tx1) == CTransaction (tx2);
97
- }
98
-
99
90
CAmount CTransaction::GetValueOut () const
100
91
{
101
92
CAmount nValueOut = 0 ;
Original file line number Diff line number Diff line change @@ -222,9 +222,6 @@ class CTransaction
222
222
return hash;
223
223
}
224
224
225
- // True if only scriptSigs are different
226
- bool IsEquivalentTo (const CTransaction& tx) const ;
227
-
228
225
// Return sum of txouts.
229
226
CAmount GetValueOut () const ;
230
227
// GetValueIn() is a method on CCoinsViewCache, because
Original file line number Diff line number Diff line change @@ -1332,6 +1332,15 @@ bool CWalletTx::IsTrusted() const
1332
1332
return true ;
1333
1333
}
1334
1334
1335
+ bool CWalletTx::IsEquivalentTo (const CWalletTx& tx) const
1336
+ {
1337
+ CMutableTransaction tx1 = *this ;
1338
+ CMutableTransaction tx2 = tx;
1339
+ for (unsigned int i = 0 ; i < tx1.vin .size (); i++) tx1.vin [i].scriptSig = CScript ();
1340
+ for (unsigned int i = 0 ; i < tx2.vin .size (); i++) tx2.vin [i].scriptSig = CScript ();
1341
+ return CTransaction (tx1) == CTransaction (tx2);
1342
+ }
1343
+
1335
1344
std::vector<uint256> CWallet::ResendWalletTransactionsBefore (int64_t nTime)
1336
1345
{
1337
1346
std::vector<uint256> result;
Original file line number Diff line number Diff line change @@ -378,6 +378,9 @@ class CWalletTx : public CMerkleTx
378
378
return (GetDebit (filter) > 0 );
379
379
}
380
380
381
+ // True if only scriptSigs are different
382
+ bool IsEquivalentTo (const CWalletTx& tx) const ;
383
+
381
384
bool IsTrusted () const ;
382
385
383
386
bool WriteToDisk (CWalletDB *pwalletdb);
You can’t perform that action at this time.
0 commit comments