File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5975,15 +5975,15 @@ bool SendMessages(CNode* pto)
5975
5975
nRelayedTransactions++;
5976
5976
{
5977
5977
// Expire old relay messages
5978
- while (!vRelayExpiration.empty () && vRelayExpiration.front ().first < GetTime () )
5978
+ while (!vRelayExpiration.empty () && vRelayExpiration.front ().first < nNow )
5979
5979
{
5980
5980
mapRelay.erase (vRelayExpiration.front ().second );
5981
5981
vRelayExpiration.pop_front ();
5982
5982
}
5983
5983
5984
5984
auto ret = mapRelay.insert (std::make_pair (hash, std::move (txinfo.tx )));
5985
5985
if (ret.second ) {
5986
- vRelayExpiration.push_back (std::make_pair (GetTime () + 15 * 60 , ret.first ));
5986
+ vRelayExpiration.push_back (std::make_pair (nNow + 15 * 60 * 1000000 , ret.first ));
5987
5987
}
5988
5988
}
5989
5989
if (vInv.size () == MAX_INV_SZ) {
You can’t perform that action at this time.
0 commit comments