Added --p2p-external-port command line parameter

This commit is contained in:
SChernykh
2022-10-28 14:06:26 +02:00
parent 6eacb677a4
commit 65a9574e52
7 changed files with 19 additions and 3 deletions
+6
View File
@@ -933,6 +933,12 @@ void P2PServer::show_peers()
LOGINFO(0, "Total: " << n << " peers");
}
int P2PServer::listen_port() const
{
const Params& params = m_pool->params();
return params.m_p2pExternalPort ? params.m_p2pExternalPort : m_listenPort;
}
int P2PServer::deserialize_block(const uint8_t* buf, uint32_t size)
{
int result;