1
0
forked from circlecloud/tera

fix: error global replace

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-07-12 22:46:26 +08:00
parent 92a1edb789
commit 1225f4b2f5
27 changed files with 504 additions and 723 deletions

View File

@@ -10,6 +10,7 @@
"use strict";
import CDB from './db/block-db'
import { TYPE_TRANSACTION } from '../constant/account';
export default class CRest extends CDB {
LoadRestContext
BlockNumDB
@@ -164,7 +165,7 @@ export default class CRest extends CDB {
var FindTx = undefined;
for (var n = 0; n < Data.arrContent.length; n++) {
var Body = Data.arrContent[n];
if (Body[0] === global.TYPE_TRANSACTION_ACC_HASH) {
if (Body[0] === TYPE_TRANSACTION.TYPE_TRANSACTION_ACC_HASH) {
try {
FindTx = global.BufLib.GetObjectFromBuffer(Body, global.FORMAT_ACCOUNT_HASH3, {})
}
@@ -371,7 +372,7 @@ export default class CRest extends CDB {
}
}
GetBlockArrFromBuffer_Load(BufRead, Info?): any {
//defiend in block-loader.ts(CBlock)
}
RETBLOCKHEADER_REST(Info, CurTime) {
if (Info.Node.SendRestGetHeader === 2)