aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/txrequest.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-10-22 12:28:14 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-10-22 12:32:16 +0200
commitfa4ec1c0bdaef9f082a6661d7faf16149774e145 (patch)
treea147b36362e1e1e422d45f9f1083edbcf5b671d3 /src/test/fuzz/txrequest.cpp
parentfaeb9a575367119dbff60c35fa2c13547718e179 (diff)
Make GenTxid boolean constructor private
Diffstat (limited to 'src/test/fuzz/txrequest.cpp')
-rw-r--r--src/test/fuzz/txrequest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/fuzz/txrequest.cpp b/src/test/fuzz/txrequest.cpp
index 72438ff2d7..a73bbcfc25 100644
--- a/src/test/fuzz/txrequest.cpp
+++ b/src/test/fuzz/txrequest.cpp
@@ -204,7 +204,7 @@ public:
}
// Call TxRequestTracker's implementation.
- m_tracker.ReceivedInv(peer, GenTxid{is_wtxid, TXHASHES[txhash]}, preferred, reqtime);
+ m_tracker.ReceivedInv(peer, is_wtxid ? GenTxid::Wtxid(TXHASHES[txhash]) : GenTxid::Txid(TXHASHES[txhash]), preferred, reqtime);
}
void RequestedTx(int peer, int txhash, std::chrono::microseconds exptime)
@@ -252,7 +252,7 @@ public:
for (int peer2 = 0; peer2 < MAX_PEERS; ++peer2) {
Announcement& ann2 = m_announcements[txhash][peer2];
if (ann2.m_state == State::REQUESTED && ann2.m_time <= m_now) {
- expected_expired.emplace_back(peer2, GenTxid{ann2.m_is_wtxid, TXHASHES[txhash]});
+ expected_expired.emplace_back(peer2, ann2.m_is_wtxid ? GenTxid::Wtxid(TXHASHES[txhash]) : GenTxid::Txid(TXHASHES[txhash]));
ann2.m_state = State::COMPLETED;
break;
}