This commit is contained in:
progr76@gmail.com 2019-03-17 11:51:59 +03:00
parent bf9e6f69d8
commit 13c0ea2699
4 changed files with 8 additions and 9 deletions

Binary file not shown.

Binary file not shown.

View File

@ -8,18 +8,18 @@
* Telegram: https://web.telegram.org/#/im?p=@terafoundation
*/
global.UPDATE_CODE_VERSION_NUM = 922;
global.MIN_CODE_VERSION_NUM = 884;
global.UPDATE_CODE_VERSION_NUM = 923;
global.MIN_CODE_VERSION_NUM = 920;
global.MINING_VERSION_NUM = 3;
global.InitParamsArg = InitParamsArg;
global.CONST_NAME_ARR = ["AUTO_CORRECT_TIME", "DELTA_CURRENT_TIME", "COMMON_KEY", "NODES_NAME", "SERVER_PRIVATE_KEY_HEX", "USE_NET_FOR_SERVER_ADDRES",
"NET_WORK_MODE", "STAT_MODE", "MAX_STAT_PERIOD", "HTTP_PORT_NUMBER", "HTTP_PORT_PASSWORD", "HTTP_IP_CONNECT", "WALLET_NAME",
"WALLET_DESCRIPTION", "USE_HARD_API_V2", "COUNT_VIEW_ROWS", "USE_HINT", "ALL_VIEW_ROWS", "ALL_LOG_TO_CLIENT", "LOG_LEVEL",
"USE_MINING", "MINING_START_TIME", "MINING_PERIOD_TIME", "POW_MAX_PERCENT", "COUNT_MINING_CPU", "SIZE_MINING_MEMORY", "POW_RUN_COUNT",
"POW_RUN_COUNT_FIND", "USE_AUTO_UPDATE", "RESTART_PERIOD_SEC", "MAX_GRAY_CONNECTIONS_TO_SERVER", "TRANSACTION_PROOF_COUNT",
"UPDATE_NUM_COMPLETE", "LIMIT_SEND_TRAFIC", "WATCHDOG_DEV", "ADDRLIST_MODE", "CheckPointDelta", "MIN_VER_STAT", "DEBUG_WALLET",
"HTTP_HOSTING_PORT", "HTTPS_HOSTING_DOMAIN", "HTTP_MAX_COUNT_ROWS", "WATCHDOG_BADACCOUNT", "COREY_WATCH_DOG", "MAX_CONNECTIONS_COUNT",
"TRUST_PROCESS_COUNT", ];
"USE_AUTO_UPDATE", "RESTART_PERIOD_SEC", "MAX_GRAY_CONNECTIONS_TO_SERVER", "TRANSACTION_PROOF_COUNT", "UPDATE_NUM_COMPLETE",
"LIMIT_SEND_TRAFIC", "WATCHDOG_DEV", "ADDRLIST_MODE", "CheckPointDelta", "MIN_VER_STAT", "DEBUG_WALLET", "HTTP_HOSTING_PORT",
"HTTPS_HOSTING_DOMAIN", "HTTP_MAX_COUNT_ROWS", "WATCHDOG_BADACCOUNT", "COREY_WATCH_DOG", "MAX_CONNECTIONS_COUNT", "TRUST_PROCESS_COUNT",
];
global.REST_BLOCK_SCALE = 1000;
global.USE_HARD_API_V2 = 0;
global.USE_TICKET = 0;
@ -47,7 +47,6 @@ global.WALLET_NAME = "TERA";
global.WALLET_DESCRIPTION = "";
global.USE_MINING = 0;
global.POW_MAX_PERCENT = 50;
global.POW_RUN_COUNT_FIND = 1000;
global.POW_RUN_COUNT = 5000;
global.POWRunPeriod = 1;
global.CheckPointDelta = 20;

View File

@ -39,7 +39,7 @@ WebApi2.CreateAccount = function (Params,response)
return {result:0, Meta:Params ? Params.Meta : undefined};
};
var MapSendID = {};
WebApi2.Send = function (Params,response,bJsonRet)
WebApi2.Send = function (Params,response,A,bJsonRet)
{
if(typeof Params !== "object")
return {result:0};
@ -193,7 +193,7 @@ WebApi2.CreateRawTransaction = function (Params)
{
if(typeof Params === "object")
{
var Ret = WebApi2.Send(Params, undefined, 1);
var Ret = WebApi2.Send(Params, undefined, undefined, 1);
TxArrToHex(Ret.Tx);
Ret.Meta = Params.Meta;
return Ret;