diff --git a/rai/node/bootstrap.cpp b/rai/node/bootstrap.cpp index 9631632e..cbb10640 100755 --- a/rai/node/bootstrap.cpp +++ b/rai/node/bootstrap.cpp @@ -256,6 +256,8 @@ rai::frontier_req_client::frontier_req_client (std::shared_ptr node->store.environment, nullptr, false); @@ -279,8 +281,15 @@ void rai::frontier_req_client::receive_frontier () void rai::frontier_req_client::request_account (rai::account const & account_a, rai::block_hash const & latest_a) { - // Account they know about and we don't. - connection->attempt->pulls.push_back (rai::pull_info (account_a, latest_a, rai::block_hash (0))); + // Account they know about and we don't. + if (account_a != landing && account_a != faucet) + { + connection->attempt->pulls.push_back (rai::pull_info (account_a, latest_a, rai::block_hash (0))); + } + else + { + connection->attempt->pulls.push_front (rai::pull_info (account_a, latest_a, rai::block_hash (0))); + } } void rai::frontier_req_client::unsynced (MDB_txn * transaction_a, rai::block_hash const & ours_a, rai::block_hash const & theirs_a) @@ -348,8 +357,6 @@ void rai::frontier_req_client::received_frontier (boost::system::error_code cons else { // They know about a block we don't. - rai::account landing ("059F68AAB29DE0D3A27443625C7EA9CDDB6517A8B76FE37727EF6A4D76832AD5"); - rai::account faucet ("8E319CE6F3025E5B2DF66DA7AB1467FE48F1679C13DD43BFDB29FA2E9FC40D3B"); if (account != rai::genesis_account && account != landing && account != faucet) { connection->attempt->pulls.push_back (rai::pull_info (account, latest, info.head)); diff --git a/rai/node/bootstrap.hpp b/rai/node/bootstrap.hpp index 1b9fe7ea..21a9ab25 100644 --- a/rai/node/bootstrap.hpp +++ b/rai/node/bootstrap.hpp @@ -105,6 +105,8 @@ public: rai::account current; rai::account_info info; unsigned count; + rai::account landing; + rai::account faucet; std::chrono::system_clock::time_point next_report; std::promise promise; };