mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Add mainchain rpc client
This commit is contained in:
parent
238a72bead
commit
d39d440fcf
10 changed files with 291 additions and 5 deletions
|
|
@ -50,13 +50,14 @@ const CBaseChainParams& BaseParams()
|
|||
std::unique_ptr<CBaseChainParams> CreateBaseChainParams(const std::string& chain)
|
||||
{
|
||||
if (chain == CBaseChainParams::MAIN)
|
||||
return MakeUnique<CBaseChainParams>("", 8332);
|
||||
return MakeUnique<CBaseChainParams>("", 8332, 18332);
|
||||
else if (chain == CBaseChainParams::TESTNET)
|
||||
return MakeUnique<CBaseChainParams>("testnet3", 18332);
|
||||
return MakeUnique<CBaseChainParams>("testnet3", 18332, 8332);
|
||||
else if (chain == CBaseChainParams::REGTEST)
|
||||
return MakeUnique<CBaseChainParams>("regtest", 18443);
|
||||
return MakeUnique<CBaseChainParams>("regtest", 18443, 18332);
|
||||
|
||||
return MakeUnique<CBaseChainParams>(chain, 18553);
|
||||
// ELEMENTS:
|
||||
return MakeUnique<CBaseChainParams>(chain, 7041, 18332);
|
||||
}
|
||||
|
||||
void SelectBaseParams(const std::string& chain)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue