diff --git a/src/chainparams.cpp b/src/chainparams.cpp index acedc6425..f8f2a7f5e 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -220,7 +220,7 @@ void *chainparams_commandline(void *ptr) fprintf(stderr,">>>>>>>>>> %u: hash %s merkle %s timestamp.%u\n",mainParams.GenesisBlock().nNonce,mainParams.GenesisBlock().GetHash().ToString().c_str(),mainParams.GenesisBlock().hashMerkleRoot.ToString().c_str(),mainParams.GenesisBlock().nTime); //set_genesis_tip(hash); - SelectBaseParams("main"); + SelectBaseParams((char *)"main"); //BaseParams().nRPCPort = ASSETCHAINS_PORT + 1; fprintf(stderr,">>>>>>>>>> %s: port.%u/%u magic.%08x %u nonce.%u time.%u nbits.%08x %u coins\n",ASSETCHAINS_SYMBOL,ASSETCHAINS_PORT,ASSETCHAINS_PORT+1,ASSETCHAINS_MAGIC,ASSETCHAINS_MAGIC,nonce,ASSETCHAINS_TIMESTAMP,GENESIS_NBITS,(uint32_t)ASSETCHAINS_SUPPLY); ASSETCHAIN_INIT = 1; diff --git a/src/chainparams.h b/src/chainparams.h index ae125d91c..fb09d3b12 100644 --- a/src/chainparams.h +++ b/src/chainparams.h @@ -85,12 +85,13 @@ public: std::string GetFoundersRewardAddressAtIndex(int i) const; /** Enforce coinbase consensus rule in regtest mode */ void SetRegTestCoinbaseMustBeProtected() { consensus.fCoinbaseMustBeProtected = true; } + + Consensus::Params consensus; // jl777 moved + CMessageHeader::MessageStartChars pchMessageStart; // jl777 moved protected: CChainParams() {} - Consensus::Params consensus; - CMessageHeader::MessageStartChars pchMessageStart; - //! Raw pub key bytes for the broadcast alert signing key. + //! Raw pub key bytes for the broadcast alert signing key. std::vector vAlertPubKey; int nDefaultPort = 0; int nMinerThreads = 0; diff --git a/src/komodo.h b/src/komodo.h index e642f02f4..90693556a 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -28,6 +28,7 @@ void komodo_init(); int32_t komodo_notarizeddata(int32_t nHeight,uint256 *notarized_hashp,uint256 *notarized_desttxidp); char *komodo_issuemethod(char *method,char *params,uint16_t port); +#define GENESIS_NBITS 0x1f00ffff int32_t ASSETCHAINS_SHORTFLAG; char ASSETCHAINS_SYMBOL[16]; uint16_t ASSETCHAINS_PORT = 8777;