0.905
This commit is contained in:
@@ -216,7 +216,7 @@ module.exports = class CBlock extends require("./db/block-db")
|
||||
if(Context.PrevBlockNum === Context.BlockNum)
|
||||
{
|
||||
var DeltaTime = Date.now() - Context.StartTimeHistory;
|
||||
if(DeltaTime > 10 * 1000)
|
||||
if(DeltaTime > 30 * 1000)
|
||||
{
|
||||
ToLog("DETECT TIMEOUT LOADHISTORY")
|
||||
this.StartLoadHistory()
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* Telegram: https://web.telegram.org/#/im?p=@terafoundation
|
||||
*/
|
||||
|
||||
global.UPDATE_CODE_VERSION_NUM = 901;
|
||||
global.UPDATE_CODE_VERSION_NUM = 905;
|
||||
global.MIN_CODE_VERSION_NUM = 884;
|
||||
global.MINING_VERSION_NUM = 3;
|
||||
global.InitParamsArg = InitParamsArg;
|
||||
@@ -144,7 +144,7 @@ else
|
||||
var Num = Date.now() - 50 * 1000;
|
||||
console.log("CURRENT NUM: " + (Math.trunc(Num / 1000) * 1000));
|
||||
global.SMART_BLOCKNUM_START = 0;
|
||||
global.START_NETWORK_DATE = 1544879533000 + 170000 * 1000;
|
||||
global.START_NETWORK_DATE = 1550843168000 + 1000 * 1000;
|
||||
global.START_MINING = 1000;
|
||||
global.REF_PERIOD_MINING = 1000;
|
||||
global.MIN_POWER_POW_TR = 8;
|
||||
@@ -153,9 +153,9 @@ else
|
||||
global.MAX_SIZE_LOG = 20 * 1024 * 1024;
|
||||
global.DELTA_BLOCK_ACCOUNT_HASH = 1000;
|
||||
global.START_BLOCK_ACCOUNT_HASH = 1000;
|
||||
global.BLOCKNUM_TICKET_ALGO = 1296300;
|
||||
global.BLOCKNUM_TICKET_ALGO = 1;
|
||||
global.WALLET_NAME = "TEST";
|
||||
NETWORK = "TERA-TEST";
|
||||
NETWORK = "TERA-TEST2";
|
||||
if(global.START_PORT_NUMBER === undefined)
|
||||
global.START_PORT_NUMBER = 40000;
|
||||
global.ALL_VIEW_ROWS = 1;
|
||||
|
||||
@@ -83,16 +83,17 @@ module.exports = class CDB extends require("../code")
|
||||
Count = 0
|
||||
continue;
|
||||
}
|
||||
delta = 1
|
||||
var SumHash = shaarr2(PrevBlock.SumHash, Block.Hash);
|
||||
if(CompareArr(SumHash, Block.SumHash) === 0)
|
||||
{
|
||||
delta = 1
|
||||
Count++
|
||||
if(Count > COUNT_BLOCKS_FOR_LOAD / 10)
|
||||
return num;
|
||||
}
|
||||
else
|
||||
{
|
||||
delta++
|
||||
Count = 0
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user