Skip to content

Commit

Permalink
Setting maximum nbirs for signed nonce to 12
Browse files Browse the repository at this point in the history
  • Loading branch information
mike31 committed Nov 29, 2018
1 parent 261c8b5 commit e0de39b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/chainparams/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ class CMultiChainParams : public CMainParams {
{
if(nTargetTimespan <= 0)
{
if(mc_gState->m_NetworkParams->GetInt64Param("powminimumbits") <= 8)
if(mc_gState->m_NetworkParams->GetInt64Param("powminimumbits") <= MAX_NBITS_FOR_SIGNED_NONCE)
{
fDisallowUnsignedBlockNonce=true;
}
Expand Down
1 change: 1 addition & 0 deletions src/chainparams/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ uint32_t JSON_NO_DOUBLE_FORMATTING=0;
int JSON_DOUBLE_DECIMAL_DIGITS=-1;
int MAX_CHUNK_SIZE = 1048576;
int MAX_CHUNK_COUNT = 1024;
int MAX_NBITS_FOR_SIGNED_NONCE = 12;

int MCP_MAX_STD_OP_RETURN_COUNT=0;
int64_t MCP_INITIAL_BLOCK_REWARD=0;
Expand Down
1 change: 1 addition & 0 deletions src/chainparams/params.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ extern int64_t MCP_FIRST_BLOCK_REWARD;
extern int MCP_TARGET_BLOCK_TIME;
extern int MAX_CHUNK_SIZE;
extern int MAX_CHUNK_COUNT;
extern int MAX_NBITS_FOR_SIGNED_NONCE;
extern int MCP_ANYONE_CAN_ADMIN;
extern int MCP_ANYONE_CAN_MINE;
extern int MCP_ANYONE_CAN_CONNECT;
Expand Down

0 comments on commit e0de39b

Please sign in to comment.