From 6fc717914069e2de2599e948e7a2ab6dd9dbb0f9 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 17 Oct 2016 16:27:56 -0300 Subject: [PATCH] test --- src/chainparams.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/chainparams.cpp b/src/chainparams.cpp index efd6c1df5..d549f66a5 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -106,7 +106,7 @@ fprintf(stderr,"chainparams\n"); vFixedSeeds.clear(); vSeeds.clear(); // TODO: set up bootstrapping for mainnet - /*base58Prefixes[PUBKEY_ADDRESS] = std::vector(1,60); + base58Prefixes[PUBKEY_ADDRESS] = std::vector(1,60); base58Prefixes[SCRIPT_ADDRESS] = std::vector(1,85); base58Prefixes[SECRET_KEY] = std::vector(1,188); base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x04)(0x88)(0xB2)(0x1E).convert_to_container >(); @@ -114,21 +114,22 @@ fprintf(stderr,"chainparams\n"); // guarantees the first two characters, when base58 encoded, are "zc" base58Prefixes[ZCPAYMENT_ADDRRESS] = {22,154}; // guarantees the first two characters, when base58 encoded, are "SK" - base58Prefixes[ZCSPENDING_KEY] = {171,54};*/ + base58Prefixes[ZCSPENDING_KEY] = {171,54}; + /* // guarantees the first 2 characters, when base58 encoded, are "t1" - base58Prefixes[PUBKEY_ADDRESS] = {0x3C}; + base58Prefixes[PUBKEY_ADDRESS] = {0x1C,0xB8}; // guarantees the first 2 characters, when base58 encoded, are "t3" - base58Prefixes[SCRIPT_ADDRESS] = {0x55}; + base58Prefixes[SCRIPT_ADDRESS] = {0x1C,0xBD}; // the first character, when base58 encoded, is "5" or "K" or "L" (as in Bitcoin) - base58Prefixes[SECRET_KEY] = {188}; + base58Prefixes[SECRET_KEY] = {0x80}; // do not rely on these BIP32 prefixes; they are not specified and may change base58Prefixes[EXT_PUBLIC_KEY] = {0x04,0x88,0xB2,0x1E}; base58Prefixes[EXT_SECRET_KEY] = {0x04,0x88,0xAD,0xE4}; // guarantees the first 2 characters, when base58 encoded, are "zc" base58Prefixes[ZCPAYMENT_ADDRRESS] = {0x16,0x9A}; // guarantees the first 2 characters, when base58 encoded, are "SK" - base58Prefixes[ZCSPENDING_KEY] = {0xAB,0x36}; + base58Prefixes[ZCSPENDING_KEY] = {0xAB,0x36};*/ vFixedSeeds = std::vector(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main));