aboutsummaryrefslogtreecommitdiff
path: root/src/txrequest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* p2p: declare Announcement::m_state as uint8_t, add getter/setterJon Atack2020-10-161-46/+54
| | | | | | | | | | | | | | | to silence these Travis CI GCC compiler warnings: txrequest.cpp:73:21: warning: ‘{anonymous}::Announcement::m_state’ is too small to hold all values of ‘enum class {anonymous}::State’ State m_state : 3; ^ The warnings are based on the maximum value held by the underlying uint8_t enumerator type, though the intention of the bitfield declaration is the maximum declared enumerator value. The warning been silenced in GCC 8.4+ and 9.3+ according to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61414
* Report and verify expirationsPieter Wuille2020-10-121-6/+16
|
* Add txrequest unit testsPieter Wuille2020-10-121-1/+133
| | | | | | | Add unit tests for TxRequestTracker. Several scenarios are tested, randomly interleaved with eachother. Includes a test by Antoine Riard (ariard).
* Add txrequest modulePieter Wuille2020-10-121-0/+606
This adds a new module (unused for now) which defines TxRequestTracker, a data structure that maintains all information about transaction requests, and coordinates requests.