Skip to content

Commit

Permalink
Refactor: Renamed ThreadDandelionShuffle()
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartArray committed Aug 15, 2021
1 parent 5e3225d commit 3a7b9fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3a7b9fd

Please sign in to comment.