This commit is contained in:
progr76@gmail.com
2019-02-15 18:56:11 +03:00
parent 4ae7e3b8bc
commit 4087d50a65
20 changed files with 426 additions and 71 deletions

View File

@@ -100,7 +100,6 @@ function CreateHashBody(body,Num,Nonce)
window.DELTA_POWER_POW_TR = 0;
window.DELTA_FOR_TIME_TX = 0;
window.MIN_POWER_POW_TR = 0;
window.MIN_POWER_POW_ACC_CREATE = 0;
window.CONSENSUS_PERIOD_TIME = 1000;
window.FIRST_TIME_BLOCK = 1530446400000;
window.SetBlockChainConstant = function (Data)
@@ -110,7 +109,6 @@ window.SetBlockChainConstant = function (Data)
Data.DELTA_CURRENT_TIME = 0;
window.DELTA_CURRENT_TIME2 = Data.DELTA_CURRENT_TIME - DeltaServerClient;
window.MIN_POWER_POW_TR = DELTA_POWER_POW_TR + Data.MIN_POWER_POW_TR;
window.MIN_POWER_POW_ACC_CREATE = Data.MIN_POWER_POW_ACC_CREATE;
window.FIRST_TIME_BLOCK = Data.FIRST_TIME_BLOCK;
window.CONSENSUS_PERIOD_TIME = Data.CONSENSUS_PERIOD_TIME;
window.GetCurrentBlockNumByTime = function ()

View File

@@ -22,6 +22,8 @@ function SetAccountsData(Data,AccountsDataStr)
{
if(!Data || !Data.result)
return ;
if($("idBtRun"))
$("idBtRun").style.display = (Data.arr.length ? '' : 'none');
if(AccountsDataStr === WasAccountsDataStr)
return ;
WasAccountsDataStr = AccountsDataStr;
@@ -603,7 +605,7 @@ function SendTrCreateAcc(Currency,PubKey,Description,Adviser,Smart,bFindAcc,bAdd
}
else
{
SendTransaction(Body, TR, MIN_POWER_POW_ACC_CREATE);
SendTransaction(Body, TR);
}
$("idAccountName").value = "";
CancelCreateAccount();

View File

@@ -40,10 +40,10 @@ function SavePrivateKey()
if(Data && Data.result === 1)
{
if(Select.value === "private")
SelectStyle("styleBlue");
SelectStyle("styleContrast1");
else
if(Select.value === "public")
SelectStyle("styleGreen");
SelectStyle("styleContrast2");
SetVisibleEditKeys(0);
UpdatesData();
}