Renaming function.

This commit is contained in:
clemahieu 2017-07-03 15:47:21 -05:00
commit aaaeb634bc
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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 <std::vector <uint8_t>>, rai::endpoint);
void publish_broadcast (std::vector <rai::peer_information> &, std::unique_ptr <rai::block>);