1
0
forked from circlecloud/tera

fix: sync error

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-07-11 15:52:17 +08:00
parent 13607ba157
commit f8fcab7929
21 changed files with 195 additions and 142 deletions

View File

@@ -111,7 +111,7 @@ function GETBLOCKHEADER100(msg) {
return;
var EndNum100 = BlockNum / 100;
var LoadHash100 = Data.Hash;
// var Hash100;
var Hash100;
var Count = Data.Count;
if (!Count || Count < 0 || !EndNum100)
return;
@@ -151,8 +151,7 @@ function GETBLOCKHEADER(msg) {
if (BlockNum > global.SERVER.GetMaxNumBlockDB())
BlockNum = global.SERVER.GetMaxNumBlockDB();
}
}
else {
} else {
BlockNum = Data.BlockNum;
var IsSum = Data.IsSum;
var Count = Data.Count;
@@ -228,8 +227,8 @@ function GETREST(msg) {
var ProofArrR = [];
var ArrRest = [];
if (nResult) {
// var WorkStruct = {};
// var WorkFormat = global.DApps.Accounts.FORMAT_ACCOUNT_ROW;
var WorkStruct = {};
var WorkFormat = global.DApps.Accounts.FORMAT_ACCOUNT_ROW;
var WorkFormatLength = global.DApps.Accounts.SIZE_ACCOUNT_ROW;
var Max = global.DApps.Accounts.DBState.GetMaxNum();
var LengthAccount = Data.Count;