Skip to content

What is P2P and RPC port ? #26

Answered by thetaspere
thetaspere asked this question in Q&A
Discussion options

You must be logged in to vote

The Theta port is :
P2P : 9933
RPC : 9932

src/chainparamsbase.cpp //at line 36

std::unique_ptr<CBaseChainParams> CreateBaseChainParams(const std::string& chain)
{
    if (chain == CBaseChainParams::MAIN)
        return MakeUnique<CBaseChainParams>("", 9932);
    else if (chain == CBaseChainParams::TESTNET)
        return MakeUnique<CBaseChainParams>("testnet4", 10229);
    else if (chain == CBaseChainParams::DEVNET)
        return MakeUnique<CBaseChainParams>(gArgs.GetDevNetName(), 19798);
    else if (chain == CBaseChainParams::REGTEST)
        return MakeUnique<CBaseChainParams>("regtest", 19898);
    else
        throw std::runtime_error(strprintf("%s: Unknown chain %s.", __func__, cha…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thetaspere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant