diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 385edc1..ac5b81f 100755 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -310,7 +310,7 @@ class CRegTestParams : public CChainParams { nDefaultPort = 13565; nPruneAfterHeight = 1000; - genesis = CreateGenesisBlock(1510727100, 730355, 0x1e0ffff0, 1, 50 * COIN); + genesis = CreateGenesisBlock(1519648602, 730355, 0x1e0ffff0, 1, 50 * COIN); consensus.hashGenesisBlock = genesis.GetHash(); assert(consensus.hashGenesisBlock == uint256S("0x00000f2fe318aae875741748f6fa2da46e8aac829ac6032ac7dec7763f02cd1e")); assert(genesis.hashMerkleRoot == uint256S("0x7624cff92ad34ef5a6fec29a84e6c1b163d09ee3cfeb4f9f6814ffa64f77e027")); diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index b5a9528..13eccf2 100755 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -136,8 +136,8 @@ UniValue generate(const UniValue& params, bool fHelp) + HelpExampleCli("generate", "11") ); - if (!Params().MineBlocksOnDemand()) - throw JSONRPCError(RPC_METHOD_NOT_FOUND, "This method can only be used on regtest"); + /*if (!Params().MineBlocksOnDemand()) + throw JSONRPCError(RPC_METHOD_NOT_FOUND, "This method can only be used on regtest");*/ int nHeightStart = 0; int nHeightEnd = 0; @@ -464,6 +464,7 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp) if (IsInitialBlockDownload()) throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "BroFist Core is downloading blocks..."); + if (chainActive.Tip()->nHeight+1 > 400) if (!masternodeSync.IsSynced()) throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "BroFist Core is syncing with network...");