From 3a7b9fd0b5a64fbae72334ae1bc9711d8be35e1e Mon Sep 17 00:00:00 2001 From: Yoshi Date: Sun, 15 Aug 2021 06:58:30 +0200 Subject: [PATCH] Refactor: Renamed ThreadDandelionShuffle() --- src/init.cpp | 2 +- src/net.cpp | 2 +- src/net.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/init.cpp b/src/init.cpp index 5d2b50c451..171ad6af60 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1817,7 +1817,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info) CConnman* connman = node.connman.get(); node.scheduler->scheduleEvery([connman]{ - connman->ThreadDandelionShuffle(); + connman->CheckDandelionShuffle(); }, std::chrono::milliseconds{1000}); #if HAVE_SYSTEM diff --git a/src/net.cpp b/src/net.cpp index fe8c4c2edd..9a80420c3e 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1788,7 +1788,7 @@ void CConnman::DandelionShuffle() { LogPrint(BCLog::DANDELION, "After Dandelion shuffle:\n%s", GetDandelionRoutingDataDebugString()); } -void CConnman::ThreadDandelionShuffle() +void CConnman::CheckDandelionShuffle() { { LOCK(cs_vNodes); diff --git a/src/net.h b/src/net.h index cbb83bb65c..1a81ccb66e 100644 --- a/src/net.h +++ b/src/net.h @@ -982,7 +982,7 @@ class CConnman bool insertDandelionEmbargo(const uint256& hash, const std::chrono::seconds& embargo); bool isTxDandelionEmbargoed(const uint256& hash) const; bool removeDandelionEmbargo(const uint256& hash); - void ThreadDandelionShuffle(); + void CheckDandelionShuffle(); /** Attempts to obfuscate tx time through exponentially distributed emitting. Works assuming that a single interval is used.