Browse Source

test

pull/4/head
jl777 8 years ago
parent
commit
e3525ad64c
  1. 7
      src/chainparams.h

7
src/chainparams.h

@ -86,6 +86,12 @@ public:
/** Enforce coinbase consensus rule in regtest mode */
void SetRegTestCoinbaseMustBeProtected() { consensus.fCoinbaseMustBeProtected = true; }
void SetDefaultPort(uint16_t port) { nDefaultPort = port; }
void setnonce(uint32_t nonce) { genesis.nNonce = nonce; }
void settimestamp(uint32_t timestamp) { genesis.nTime = timestamp; }
void setgenesis(CBlock &block) { genesis = block; }
void recalc_genesis(uint32_t nonce) { genesis = CreateGenesisBlock(ASSETCHAINS_TIMESTAMP, nonce, GENESIS_NBITS, 1, COIN); };
int nDefaultPort = 0;
Consensus::Params consensus; // jl777 moved
CMessageHeader::MessageStartChars pchMessageStart; // jl777 moved
protected:
@ -93,7 +99,6 @@ protected:
//! Raw pub key bytes for the broadcast alert signing key.
std::vector<unsigned char> vAlertPubKey;
int nDefaultPort = 0;
int nMinerThreads = 0;
long nMaxTipAge = 0;
uint64_t nPruneAfterHeight = 0;

Loading…
Cancel
Save