From 1cff3d6cb017aea87d16cbda0768bbab256d16da Mon Sep 17 00:00:00 2001 From: Gleb Naumenko Date: Wed, 6 Feb 2019 20:25:27 -0800 Subject: Change in transaction pull scheduling to prevent InvBlock-related attacks Co-authored-by: Suhas Daftuar --- src/util/time.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/util/time.cpp') diff --git a/src/util/time.cpp b/src/util/time.cpp index 83a7937d8..c0ede9870 100644 --- a/src/util/time.cpp +++ b/src/util/time.cpp @@ -97,14 +97,3 @@ std::string FormatISO8601Date(int64_t nTime) { #endif return strprintf("%04i-%02i-%02i", ts.tm_year + 1900, ts.tm_mon + 1, ts.tm_mday); } - -std::string FormatISO8601Time(int64_t nTime) { - struct tm ts; - time_t time_val = nTime; -#ifdef _MSC_VER - gmtime_s(&ts, &time_val); -#else - gmtime_r(&time_val, &ts); -#endif - return strprintf("%02i:%02i:%02iZ", ts.tm_hour, ts.tm_min, ts.tm_sec); -} -- cgit v1.2.3