Changeset View
Changeset View
Standalone View
Standalone View
src/test/fuzz/txrequest.cpp
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
* as well. | * as well. | ||||
* | * | ||||
* Check() calls the TxRequestTracker's sanity check, plus compares the | * Check() calls the TxRequestTracker's sanity check, plus compares the | ||||
* output of the constant accessors (Size(), CountLoad(), CountTracked()) | * output of the constant accessors (Size(), CountLoad(), CountTracked()) | ||||
* with expected values. | * with expected values. | ||||
*/ | */ | ||||
class Tester { | class Tester { | ||||
//! TxRequestTracker object being tested. | //! TxRequestTracker object being tested. | ||||
TxRequestTracker m_tracker; | TxRequestTracker<TxId> m_tracker; | ||||
//! States for txid/peer combinations in the naive data structure. | //! States for txid/peer combinations in the naive data structure. | ||||
enum class State { | enum class State { | ||||
//! Absence of this txid/peer combination | //! Absence of this txid/peer combination | ||||
NOTHING, | NOTHING, | ||||
// Note that this implementation does not distinguish between | // Note that this implementation does not distinguish between | ||||
// DELAYED/READY/BEST variants of CANDIDATE. | // DELAYED/READY/BEST variants of CANDIDATE. | ||||
▲ Show 20 Lines • Show All 325 Lines • Show Last 20 Lines |