Connect to node2 over TCP instead of falling back to UDP as this is unnecessary.
This commit is contained in:
parent
6552a82c7e
commit
e055092826
1 changed files with 1 additions and 1 deletions
|
|
@ -2277,8 +2277,8 @@ TEST (node, rep_remove)
|
|||
auto vote2 = std::make_shared<nano::vote> (nano::dev::genesis_key.pub, nano::dev::genesis_key.prv, 0, nano::dev::genesis);
|
||||
node.rep_crawler.response (channel1, vote2);
|
||||
ASSERT_TIMELY (10s, node.rep_crawler.representative_count () == 1);
|
||||
// Add inactive TCP representative channel
|
||||
auto node2 (std::make_shared<nano::node> (system.io_ctx, nano::unique_path (), nano::node_config (nano::get_available_port (), system.logging), system.work));
|
||||
node2->start ();
|
||||
std::weak_ptr<nano::node> node_w (node.shared ());
|
||||
auto vote3 = std::make_shared<nano::vote> (keypair2.pub, keypair2.prv, 0, nano::dev::genesis);
|
||||
node.network.tcp_channels.start_tcp (node2->network.endpoint (), [node_w, &vote3] (std::shared_ptr<nano::transport::channel> const & channel2) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue