ASSETCHAINS_BLOCKTIME

This commit is contained in:
jl777
2019-02-09 03:44:03 -11:00
parent 0a0d0ffa18
commit be6279d62d
4 changed files with 11 additions and 3 deletions

View File

@@ -276,6 +276,11 @@ void *chainparams_commandline(void *ptr)
//fprintf(stderr,">>>>>>>> port.%u\n",ASSETCHAINS_P2PPORT);
if ( ASSETCHAINS_SYMBOL[0] != 0 )
{
if ( ASSETCHAINS_BLOCKTIME != 60 )
{
consensus.nMaxFutureBlockTime = 7 * ASSETCHAINS_BLOCKTIME; // 7 blocks
consensus.nPowTargetSpacing = ASSETCHAINS_BLOCKTIME;
}
mainParams.SetDefaultPort(ASSETCHAINS_P2PPORT);
if ( ASSETCHAINS_RPCPORT == 0 )
ASSETCHAINS_RPCPORT = ASSETCHAINS_P2PPORT + 1;