Skip to content

Commit

Permalink
leetle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brofistnetwork committed Feb 26, 2018
1 parent 2ff3d56 commit 183de48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down
5 changes: 3 additions & 2 deletions src/rpcmining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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...");

Expand Down

0 comments on commit 183de48

Please sign in to comment.