test
This commit is contained in:
@@ -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);
|
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);
|
//set_genesis_tip(hash);
|
||||||
SelectBaseParams("main");
|
SelectBaseParams((char *)"main");
|
||||||
//BaseParams().nRPCPort = ASSETCHAINS_PORT + 1;
|
//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);
|
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;
|
ASSETCHAIN_INIT = 1;
|
||||||
|
|||||||
@@ -85,12 +85,13 @@ public:
|
|||||||
std::string GetFoundersRewardAddressAtIndex(int i) const;
|
std::string GetFoundersRewardAddressAtIndex(int i) const;
|
||||||
/** Enforce coinbase consensus rule in regtest mode */
|
/** Enforce coinbase consensus rule in regtest mode */
|
||||||
void SetRegTestCoinbaseMustBeProtected() { consensus.fCoinbaseMustBeProtected = true; }
|
void SetRegTestCoinbaseMustBeProtected() { consensus.fCoinbaseMustBeProtected = true; }
|
||||||
|
|
||||||
|
Consensus::Params consensus; // jl777 moved
|
||||||
|
CMessageHeader::MessageStartChars pchMessageStart; // jl777 moved
|
||||||
protected:
|
protected:
|
||||||
CChainParams() {}
|
CChainParams() {}
|
||||||
|
|
||||||
Consensus::Params consensus;
|
//! Raw pub key bytes for the broadcast alert signing key.
|
||||||
CMessageHeader::MessageStartChars pchMessageStart;
|
|
||||||
//! Raw pub key bytes for the broadcast alert signing key.
|
|
||||||
std::vector<unsigned char> vAlertPubKey;
|
std::vector<unsigned char> vAlertPubKey;
|
||||||
int nDefaultPort = 0;
|
int nDefaultPort = 0;
|
||||||
int nMinerThreads = 0;
|
int nMinerThreads = 0;
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ void komodo_init();
|
|||||||
int32_t komodo_notarizeddata(int32_t nHeight,uint256 *notarized_hashp,uint256 *notarized_desttxidp);
|
int32_t komodo_notarizeddata(int32_t nHeight,uint256 *notarized_hashp,uint256 *notarized_desttxidp);
|
||||||
char *komodo_issuemethod(char *method,char *params,uint16_t port);
|
char *komodo_issuemethod(char *method,char *params,uint16_t port);
|
||||||
|
|
||||||
|
#define GENESIS_NBITS 0x1f00ffff
|
||||||
int32_t ASSETCHAINS_SHORTFLAG;
|
int32_t ASSETCHAINS_SHORTFLAG;
|
||||||
char ASSETCHAINS_SYMBOL[16];
|
char ASSETCHAINS_SYMBOL[16];
|
||||||
uint16_t ASSETCHAINS_PORT = 8777;
|
uint16_t ASSETCHAINS_PORT = 8777;
|
||||||
|
|||||||
Reference in New Issue
Block a user