Browse Source

test

pull/4/head
jl777 8 years ago
parent
commit
9c05b959a0
  1. 2
      src/chainparams.cpp
  2. 7
      src/chainparams.h
  3. 1
      src/komodo.h

2
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;

7
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<unsigned char> vAlertPubKey;
int nDefaultPort = 0;
int nMinerThreads = 0;

1
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;

Loading…
Cancel
Save