Verify that an announcement for gtxid by peer has expired some time before this check is scheduled. * * Every expected expiration should be accounted for through exactly one call to this function. */
| 192 | * Every expected expiration should be accounted for through exactly one call to this function. |
| 193 | */ |
| 194 | void CheckExpired(NodeId peer, GenTxid gtxid) |
| 195 | { |
| 196 | const auto& testname = m_testname; |
| 197 | auto& runner = m_runner; |
| 198 | runner.actions.emplace_back(m_now, [=, &runner]() { |
| 199 | auto it = runner.expired.find(std::pair<NodeId, GenTxid>{peer, gtxid}); |
| 200 | BOOST_CHECK_MESSAGE(it != runner.expired.end(), "[" + testname + "] missing expiration"); |
| 201 | if (it != runner.expired.end()) runner.expired.erase(it); |
| 202 | }); |
| 203 | } |
| 204 | |
| 205 | /** Generate a random txhash, whose priorities for certain peers are constrained. |
| 206 | * |
no test coverage detected