test
This commit is contained in:
@@ -86,6 +86,12 @@ public:
|
|||||||
/** Enforce coinbase consensus rule in regtest mode */
|
/** Enforce coinbase consensus rule in regtest mode */
|
||||||
void SetRegTestCoinbaseMustBeProtected() { consensus.fCoinbaseMustBeProtected = true; }
|
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
|
Consensus::Params consensus; // jl777 moved
|
||||||
CMessageHeader::MessageStartChars pchMessageStart; // jl777 moved
|
CMessageHeader::MessageStartChars pchMessageStart; // jl777 moved
|
||||||
protected:
|
protected:
|
||||||
@@ -93,7 +99,6 @@ protected:
|
|||||||
|
|
||||||
//! 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;
|
std::vector<unsigned char> vAlertPubKey;
|
||||||
int nDefaultPort = 0;
|
|
||||||
int nMinerThreads = 0;
|
int nMinerThreads = 0;
|
||||||
long nMaxTipAge = 0;
|
long nMaxTipAge = 0;
|
||||||
uint64_t nPruneAfterHeight = 0;
|
uint64_t nPruneAfterHeight = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user