From f16aa73b3e82b133d8336a26b45670150fef0ae0 Mon Sep 17 00:00:00 2001 From: serkixenos Date: Tue, 17 May 2022 00:32:00 +0200 Subject: [PATCH] Fix function name typos, disconnet -> disconnect --- libraries/net/node.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libraries/net/node.cpp b/libraries/net/node.cpp index a36cc856..2103c636 100644 --- a/libraries/net/node.cpp +++ b/libraries/net/node.cpp @@ -1338,7 +1338,7 @@ namespace graphene { namespace net { namespace detail { // reconnect with the rest of the network, or it might just futher isolate us. { // As usual, the first step is to walk through all our peers and figure out which - // peers need action (disconneting, sending keepalives, etc), then we walk through + // peers need action (disconnecting, sending keepalives, etc), then we walk through // those lists yielding at our leisure later. ASSERT_TASK_NOT_PREEMPTED(); @@ -1986,7 +1986,7 @@ namespace graphene { namespace net { namespace detail { return; } - auto disconnet_peer = [&](const std::ostringstream& rejection_message) { + auto disconnect_peer = [&](const std::ostringstream& rejection_message) { #ifdef ENABLE_DEBUG_ULOGS ulog("Rejecting connection from peer because their version is too old. Their version date: ${date}", ("date", originating_peer->graphene_git_revision_unix_timestamp)); #endif @@ -2017,7 +2017,7 @@ namespace graphene { namespace net { namespace detail { ("their_hard_fork", next_fork_block_number)("my_block_number", head_block_num)); std::ostringstream rejection_message; rejection_message << "Your client is outdated -- you can only understand blocks up to #" << next_fork_block_number << ", but I'm already on block #" << head_block_num; - disconnet_peer(rejection_message); + disconnect_peer(rejection_message); return; } } @@ -2032,7 +2032,7 @@ namespace graphene { namespace net { namespace detail { std::ostringstream rejection_message; rejection_message << "Your client is outdated -- you can only understand blocks up to #" << originating_peer->last_known_hardfork_time.to_iso_string() << ", but I'm already on block #" << _delegate->get_block_time(_delegate->get_head_block_id()).to_iso_string(); std::cout<<"Reject connection due the hardforks on hello_message"<