This commit is contained in:
jl777
2016-10-29 08:50:43 -03:00
parent 9c05b959a0
commit e3525ad64c

View File

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