@@ -481,11 +481,17 @@ class CCustomParams : public CRegTestParams {
481
481
fMineBlocksOnDemand = args.GetBoolArg (" -fmineblocksondemand" , fMineBlocksOnDemand );
482
482
m_fallback_fee_enabled = args.GetBoolArg (" -fallback_fee_enabled" , m_fallback_fee_enabled);
483
483
484
- bech32_hrp = args.GetArg (" -bech32_hrp" , bech32_hrp );
484
+ bech32_hrp = args.GetArg (" -bech32_hrp" , " ert " );
485
485
blech32_hrp = args.GetArg (" -blech32_hrp" , " el" );
486
- base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char >(1 , args.GetArg (" -pubkeyprefix" , 111 ));
487
- base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char >(1 , args.GetArg (" -scriptprefix" , 196 ));
486
+ base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char >(1 , args.GetArg (" -pubkeyprefix" , 235 ));
487
+ base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char >(1 , args.GetArg (" -scriptprefix" , 75 ));
488
+ base58Prefixes[BLINDED_ADDRESS] = std::vector<unsigned char >(1 , args.GetArg (" -blindedprefix" , 4 ));
488
489
base58Prefixes[SECRET_KEY] = std::vector<unsigned char >(1 , args.GetArg (" -secretprefix" , 239 ));
490
+ base58Prefixes[PARENT_PUBKEY_ADDRESS] = std::vector<unsigned char >(1 , args.GetArg (" -parentpubkeyprefix" , 111 ));
491
+ base58Prefixes[PARENT_SCRIPT_ADDRESS] = std::vector<unsigned char >(1 , args.GetArg (" -parentscriptprefix" , 196 ));
492
+ parent_bech32_hrp = args.GetArg (" -parent_bech32_hrp" , " bcrt" );
493
+ parent_blech32_hrp = args.GetArg (" -parent_blech32_hrp" , " bcrt" );
494
+
489
495
490
496
std::string extpubprefix = args.GetArg (" -extpubkeyprefix" , " 043587CF" );
491
497
assert (IsHex (extpubprefix) && extpubprefix.size () == 8 && " -extpubkeyprefix must be hex string of length 8" );
@@ -559,13 +565,6 @@ class CCustomParams : public CRegTestParams {
559
565
const CScript default_script (CScript () << OP_TRUE);
560
566
consensus.fedpegScript = StrHexToScriptWithDefault (args.GetArg (" -fedpegscript" , " " ), default_script);
561
567
562
- base58Prefixes[PARENT_PUBKEY_ADDRESS] = std::vector<unsigned char >(1 , args.GetArg (" -parentpubkeyprefix" , 111 ));
563
- base58Prefixes[PARENT_SCRIPT_ADDRESS] = std::vector<unsigned char >(1 , args.GetArg (" -parentscriptprefix" , 196 ));
564
- parent_bech32_hrp = args.GetArg (" -parent_bech32_hrp" , " bcrt" );
565
- parent_blech32_hrp = args.GetArg (" -parent_blech32_hrp" , " bcrt" );
566
-
567
- base58Prefixes[BLINDED_ADDRESS] = std::vector<unsigned char >(1 , args.GetArg (" -blindedprefix" , 4 ));
568
-
569
568
// Calculate pegged Bitcoin asset
570
569
std::vector<unsigned char > commit = CommitToArguments (consensus, strNetworkID);
571
570
uint256 entropy;
0 commit comments