From aaaeb634bc2c451b77c214868b7cd6b8645259c7 Mon Sep 17 00:00:00 2001 From: clemahieu Date: Mon, 3 Jul 2017 15:47:21 -0500 Subject: [PATCH] Renaming function. --- rai/node/node.cpp | 4 ++-- rai/node/node.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rai/node/node.cpp b/rai/node/node.cpp index eaef6c8d..468522f4 100755 --- a/rai/node/node.cpp +++ b/rai/node/node.cpp @@ -234,7 +234,7 @@ void rai::network::republish_block (rai::block & block) // 1) Only if they are a non-replay vote of a block that's actively settling. Settling blocks are limited by block PoW // 2) Only if a vote for this block hasn't been received in the previous X second. This prevents rapid publishing of votes with increasing sequence numbers. // 3) The rep has a weight > Y to prevent creating a lot of small-weight accounts to send out votes -void rai::network::republish (std::chrono::system_clock::time_point const & last_vote, rai::vote const & vote_a) +void rai::network::republish_vote (std::chrono::system_clock::time_point const & last_vote, rai::vote const & vote_a) { if (last_vote < std::chrono::system_clock::now () - std::chrono::seconds (1)) { @@ -2582,7 +2582,7 @@ void rai::election::confirm_cutoff (MDB_txn * transaction_a) void rai::election::vote (rai::vote const & vote_a) { - node.network.republish (last_vote, vote_a); + node.network.republish_vote (last_vote, vote_a); last_vote = std::chrono::system_clock::now (); rai::transaction transaction (node.store.environment, nullptr, true); assert (vote_a.validate (transaction, node.store) != rai::vote_result::invalid); diff --git a/rai/node/node.hpp b/rai/node/node.hpp index 08624af8..f7cbe4f1 100644 --- a/rai/node/node.hpp +++ b/rai/node/node.hpp @@ -265,7 +265,7 @@ public: void receive_action (boost::system::error_code const &, size_t); void rpc_action (boost::system::error_code const &, size_t); void rebroadcast_reps (rai::block &); - void republish (std::chrono::system_clock::time_point const &, rai::vote const &); + void republish_vote (std::chrono::system_clock::time_point const &, rai::vote const &); void republish_block (rai::block &); void republish (rai::block_hash const &, std::shared_ptr >, rai::endpoint); void publish_broadcast (std::vector &, std::unique_ptr );