@@ -39,7 +39,6 @@ extern RecursiveMutex cs_main;
3939// timeouts
4040static constexpr int COINJOIN_AUTO_TIMEOUT_MIN = 5 ;
4141static constexpr int COINJOIN_AUTO_TIMEOUT_MAX = 15 ;
42- static constexpr int COINJOIN_QUEUE_TIMEOUT = 30 ;
4342static constexpr int COINJOIN_SIGNING_TIMEOUT = 15 ;
4443
4544static constexpr size_t COINJOIN_ENTRY_MAX_SIZE = 9 ;
@@ -171,57 +170,6 @@ class CCoinJoinEntry
171170};
172171
173172
174- /* *
175- * A currently in progress mixing merge and denomination information
176- */
177- class CCoinJoinQueue
178- {
179- public:
180- int nDenom{0 };
181- COutPoint masternodeOutpoint;
182- uint256 m_protxHash;
183- int64_t nTime{0 };
184- bool fReady {false }; // ready for submit
185- std::vector<unsigned char > vchSig;
186- // memory only
187- bool fTried {false };
188-
189- CCoinJoinQueue () = default ;
190-
191- CCoinJoinQueue (int nDenom, const COutPoint& outpoint, const uint256& proTxHash, int64_t nTime, bool fReady ) :
192- nDenom (nDenom),
193- masternodeOutpoint (outpoint),
194- m_protxHash (proTxHash),
195- nTime (nTime),
196- fReady (fReady )
197- {
198- }
199-
200- SERIALIZE_METHODS (CCoinJoinQueue, obj)
201- {
202- READWRITE (obj.nDenom , obj.m_protxHash , obj.nTime , obj.fReady );
203- if (!(s.GetType () & SER_GETHASH)) {
204- READWRITE (obj.vchSig );
205- }
206- }
207-
208- [[nodiscard]] uint256 GetHash () const ;
209- [[nodiscard]] uint256 GetSignatureHash () const ;
210-
211- // / Check if we have a valid Masternode address
212- [[nodiscard]] bool CheckSignature (const CBLSPublicKey& blsPubKey) const ;
213-
214- // / Check if a queue is too old or too far into the future
215- [[nodiscard]] bool IsTimeOutOfBounds (int64_t current_time = GetAdjustedTime()) const ;
216-
217- [[nodiscard]] std::string ToString () const ;
218-
219- friend bool operator ==(const CCoinJoinQueue& a, const CCoinJoinQueue& b)
220- {
221- return a.nDenom == b.nDenom && a.masternodeOutpoint == b.masternodeOutpoint && a.nTime == b.nTime && a.fReady == b.fReady ;
222- }
223- };
224-
225173/* * Helper class to store mixing transaction (tx) information.
226174 */
227175class CCoinJoinBroadcastTx
0 commit comments