Skip to content

Commit

Permalink
Merge pull request #2 from I-n-d-e-r/master
Browse files Browse the repository at this point in the history
Linux Build - Fix && Linux Wallet
  • Loading branch information
PieCoinTech committed Dec 19, 2016
2 parents 7c3b601 + 755fc28 commit fd63046
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
20 changes: 10 additions & 10 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ class CMainParams : public CChainParams {
vSeeds.push_back(CDNSSeedData("52.34.224.106", "52.34.224.106"));


base58Prefixes[PUBKEY_ADDRESS] = list_of(55);
base58Prefixes[SCRIPT_ADDRESS] = list_of(72);
base58Prefixes[SECRET_KEY] = list_of(142);
base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x04)(0x73)(0xDC)(0x3B);
base58Prefixes[EXT_SECRET_KEY] = list_of(0x04)(0x73)(0x6C)(0x1C);
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,55);
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,72);
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,142);
base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x04)(0x73)(0xDC)(0x3B).convert_to_container<std::vector<unsigned char> >();
base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x04)(0x73)(0x6C)(0x1C).convert_to_container<std::vector<unsigned char> >();

convertSeed6(vFixedSeeds, pnSeed6_main, ARRAYLEN(pnSeed6_main));

Expand Down Expand Up @@ -164,11 +164,11 @@ class CTestNetParams : public CMainParams {
vFixedSeeds.clear();
vSeeds.clear();

base58Prefixes[PUBKEY_ADDRESS] = list_of(120);
base58Prefixes[SCRIPT_ADDRESS] = list_of(196);
base58Prefixes[SECRET_KEY] = list_of(239);
base58Prefixes[EXT_PUBLIC_KEY] = list_of(0x04)(0x35)(0x17)(0xFF);
base58Prefixes[EXT_SECRET_KEY] = list_of(0x04)(0x35)(0x43)(0x99);
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,120);
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,196);
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,239);
base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x04)(0x35)(0x17)(0xFF).convert_to_container<std::vector<unsigned char> >();
base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x04)(0x35)(0x43)(0x99).convert_to_container<std::vector<unsigned char> >();

convertSeed6(vFixedSeeds, pnSeed6_test, ARRAYLEN(pnSeed6_test));

Expand Down
6 changes: 5 additions & 1 deletion src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -975,10 +975,14 @@ void ThreadMapPort()
#ifndef UPNPDISCOVER_SUCCESS
/* miniupnpc 1.5 */
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0);
#else
#elif MINIUPNPC_API_VERSION < 14
/* miniupnpc 1.6 */
int error = 0;
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, &error);
#else
/* miniupnpc 1.9 */
int error = 0;
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, 2, &error);
#endif

struct UPNPUrls urls;
Expand Down

0 comments on commit fd63046

Please sign in to comment.