0.886
This commit is contained in:
@@ -363,8 +363,16 @@ class AccountApp extends require("./dapp")
|
||||
}
|
||||
}
|
||||
}
|
||||
GetVerifyTransaction(BlockNum, TrNum, Body)
|
||||
GetVerifyTransaction(Block, BlockNum, TrNum, Body)
|
||||
{
|
||||
if(Block.VersionBody === 1)
|
||||
{
|
||||
var Result = Block.arrContentResult[TrNum];
|
||||
if(!Result)
|
||||
return - 1;
|
||||
else
|
||||
return Result;
|
||||
}
|
||||
var Type = Body[0];
|
||||
var Find = 0;
|
||||
switch(Type)
|
||||
@@ -571,6 +579,7 @@ class AccountApp extends require("./dapp")
|
||||
{
|
||||
WALLET.OnCreateAccount(Account)
|
||||
}
|
||||
this.ResultTx = Account.Num
|
||||
return true;
|
||||
}
|
||||
TRTransferMoney(Block, Body, BlockNum, TrNum, format_money_transfer, workstructtransfer)
|
||||
@@ -679,6 +688,7 @@ class AccountApp extends require("./dapp")
|
||||
Account.PubKey = Item.PubKey
|
||||
Account.Name = name
|
||||
this.WriteStateTR(Account, TrNum)
|
||||
this.ResultTx = Account.Num
|
||||
Item.ID = Account.Num
|
||||
this.SendMoneyTR(Block, Data.Num, Account.Num, {SumCOIN:Item.SumCOIN, SumCENT:Item.SumCENT}, BlockNum, TrNum, TR.Description,
|
||||
TR.Description, 1)
|
||||
@@ -1164,7 +1174,7 @@ class AccountApp extends require("./dapp")
|
||||
{
|
||||
var DBChanges = this.DBChanges;
|
||||
if(DBChanges.RollBackTransaction)
|
||||
return ;
|
||||
return false;
|
||||
DBChanges.BlockMaxAccount = DBChanges.TRMaxAccount
|
||||
for(var key in DBChanges.TRMap)
|
||||
{
|
||||
@@ -1184,6 +1194,7 @@ class AccountApp extends require("./dapp")
|
||||
DBChanges.BlockEvent.push(DBChanges.TREvent[i])
|
||||
}
|
||||
global.TickCounter = 0
|
||||
return true;
|
||||
}
|
||||
OnWriteNewAccountTR(Data, BlockNum, TrNum)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user