Skip to content

Commit

Permalink
test: remove leftovers missed in bitcoin#25514 (dash#6097)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwvg committed Dec 8, 2024
1 parent c7cb26b commit 730cdf2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/test/net_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -670,9 +670,6 @@ BOOST_AUTO_TEST_CASE(get_local_addr_for_peer_port)
const uint16_t bind_port = 20001;
m_node.args->ForceSetArg("-bind", strprintf("3.4.5.6:%u", bind_port));

const uint32_t current_time = static_cast<uint32_t>(GetAdjustedTime());
SetMockTime(current_time);

// Our address:port as seen from the peer, completely different from the above.
in_addr peer_us_addr;
peer_us_addr.s_addr = htonl(0x02030405);
Expand All @@ -696,7 +693,7 @@ BOOST_AUTO_TEST_CASE(get_local_addr_for_peer_port)
// Without the fix peer_us:8333 is chosen instead of the proper peer_us:bind_port.
auto chosen_local_addr = GetLocalAddrForPeer(peer_out);
BOOST_REQUIRE(chosen_local_addr);
const CAddress expected{CService{peer_us_addr, bind_port}, NODE_NETWORK, current_time};
const CService expected{peer_us_addr, bind_port};
BOOST_CHECK(*chosen_local_addr == expected);

// Create a peer with a routable IPv4 address (inbound).
Expand Down

0 comments on commit 730cdf2

Please sign in to comment.