diff --git a/src/darksend.cpp b/src/darksend.cpp index b6d23f2fa..183a96bfa 100644 --- a/src/darksend.cpp +++ b/src/darksend.cpp @@ -881,7 +881,7 @@ bool CDarksendPool::IsInputScriptSigValid(const CTxIn& txin) BOOST_FOREACH(const CTxDSIn& txdsin, entry.vecTxDSIn) { txNew.vin.push_back(txdsin); - if(txdsin == txin) { + if(txdsin.prevout == txin.prevout) { nTxInIndex = i; sigPubKey = txdsin.prevPubKey; } @@ -995,7 +995,7 @@ bool CDarksendPool::AddEntry(const CDarkSendEntry& entryNew, PoolMessage& nMessa LogPrint("privatesend", "looking for txin -- %s\n", txin.ToString()); BOOST_FOREACH(const CDarkSendEntry& entry, vecEntries) { BOOST_FOREACH(const CTxDSIn& txdsin, entry.vecTxDSIn) { - if((CTxIn)txdsin == txin) { + if(txdsin.prevout == txin.prevout) { LogPrint("privatesend", "CDarksendPool::AddEntry -- found in txin\n"); nMessageIDRet = ERR_ALREADY_HAVE; nSessionUsers--; diff --git a/src/darksend.h b/src/darksend.h index 885a6b6a1..95e6347a1 100644 --- a/src/darksend.h +++ b/src/darksend.h @@ -103,7 +103,7 @@ public: vecTxDSOut(std::vector()), txCollateral(CTransaction()), nAmount(0), - nTimeAdded(0) + nTimeAdded(GetTime()) {} CDarkSendEntry(const std::vector& vecTxIn, const std::vector& vecTxOut, const CTransaction& txCollateral) :