From e3525ad64c3c17a7d88844e9a1de36d7b7e5668d Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 29 Oct 2016 08:50:43 -0300 Subject: [PATCH] test --- src/chainparams.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/chainparams.h b/src/chainparams.h index fb09d3b12..3a42f920f 100644 --- a/src/chainparams.h +++ b/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 vAlertPubKey; - int nDefaultPort = 0; int nMinerThreads = 0; long nMaxTipAge = 0; uint64_t nPruneAfterHeight = 0;