Skip to content

Commit

Permalink
Allow setmocktime on mocknet
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouzo committed Dec 7, 2022
1 parent 35bd90c commit cc8302e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,7 @@ void CMainParams::UpdateActivationParametersFromArgs() {
consensus.pos.nTargetSpacing = nMockBlockTimeSecs;
consensus.pos.nTargetTimespanV2 = 10 * consensus.pos.nTargetSpacing;
consensus.pos.allowMintingWithoutPeers = true;
consensus.pos.fNoRetargeting = true;

LogPrintf("mocknet: block-time: %s secs\n", consensus.pos.nTargetSpacing);

Expand Down

0 comments on commit cc8302e

Please sign in to comment.