mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Revert "Relay double-spends, subject to anti-DOS"
This reverts commit d640a3ceab.
This commit is contained in:
parent
3015e0bca6
commit
98e84aae7a
6 changed files with 15 additions and 109 deletions
16
src/core.cpp
16
src/core.cpp
|
|
@ -124,22 +124,6 @@ CTransaction& CTransaction::operator=(const CTransaction &tx) {
|
|||
return *this;
|
||||
}
|
||||
|
||||
bool CTransaction::IsEquivalentTo(const CTransaction& tx) const
|
||||
{
|
||||
if (nVersion != tx.nVersion ||
|
||||
nLockTime != tx.nLockTime ||
|
||||
vin.size() != tx.vin.size() ||
|
||||
vout != tx.vout)
|
||||
return false;
|
||||
for (unsigned int i = 0; i < vin.size(); i++)
|
||||
{
|
||||
if (vin[i].nSequence != tx.vin[i].nSequence ||
|
||||
vin[i].prevout != tx.vin[i].prevout)
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
int64_t CTransaction::GetValueOut() const
|
||||
{
|
||||
int64_t nValueOut = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue