mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
p2p, refactor: pass and use uint16_t CService::port as uint16_t
This commit is contained in:
@@ -91,7 +91,7 @@ BOOST_FIXTURE_TEST_SUITE(net_tests, BasicTestingSetup)
|
||||
BOOST_AUTO_TEST_CASE(cnode_listen_port)
|
||||
{
|
||||
// test default
|
||||
uint16_t port = GetListenPort();
|
||||
uint16_t port{GetListenPort()};
|
||||
BOOST_CHECK(port == Params().GetDefaultPort());
|
||||
// test set port
|
||||
uint16_t altPort = 12345;
|
||||
|
||||
Reference in New Issue
Block a user