aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorGleb Naumenko <naumenko.gs@gmail.com>2019-02-06 20:25:27 -0800
committerGleb Naumenko <naumenko.gs@gmail.com>2019-02-06 20:25:27 -0800
commit1cff3d6cb017aea87d16cbda0768bbab256d16da (patch)
tree8655b5b333b8050199464f4ad8034b46fe37c800 /src/util
parent5029e94f855c73bad2e0ea6dc0378f33787ae131 (diff)
downloadbitcoin-1cff3d6cb017aea87d16cbda0768bbab256d16da.tar.xz
Change in transaction pull scheduling to prevent InvBlock-related attacks
Co-authored-by: Suhas Daftuar <sdaftuar@gmail.com>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/time.cpp11
-rw-r--r--src/util/time.h1
2 files changed, 0 insertions, 12 deletions
diff --git a/src/util/time.cpp b/src/util/time.cpp
index 83a7937d8f..c0ede98701 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);
-}
diff --git a/src/util/time.h b/src/util/time.h
index f2e2747434..68de1c156e 100644
--- a/src/util/time.h
+++ b/src/util/time.h
@@ -33,6 +33,5 @@ void MilliSleep(int64_t n);
*/
std::string FormatISO8601DateTime(int64_t nTime);
std::string FormatISO8601Date(int64_t nTime);
-std::string FormatISO8601Time(int64_t nTime);
#endif // BITCOIN_UTIL_TIME_H