0.897
This commit is contained in:
@@ -156,7 +156,7 @@ WebApi2.GetHistoryTransactions = function (Params)
|
||||
if(!Params.Count)
|
||||
Params.Count = 100;
|
||||
var arr = DApps.Accounts.GetHistory(Params.AccountID, Params.Count, Params.NextPos);
|
||||
if(Params.GetTxID)
|
||||
if(Params.GetTxID || Params.GetDescription)
|
||||
{
|
||||
for(var i = 0; i < arr.length; i++)
|
||||
{
|
||||
@@ -167,7 +167,18 @@ WebApi2.GetHistoryTransactions = function (Params)
|
||||
var Body = Block.arrContent[Item.TrNum];
|
||||
if(!Body)
|
||||
continue;
|
||||
Item.TxID = GetHexFromArr(GetTxID(Item.BlockNum, Body));
|
||||
if(Params.GetTxID)
|
||||
{
|
||||
Item.TxID = GetHexFromArr(GetTxID(Item.BlockNum, Body));
|
||||
}
|
||||
if(Params.GetDescription)
|
||||
{
|
||||
var TR = DApps.Accounts.GetObjectTransaction(Body);
|
||||
if(TR)
|
||||
{
|
||||
Item.Description = TR.Description;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
var Result = {result:arr.length > 0 ? 1 : 0, History:arr, Tail:DApps.Accounts.DBStateHistory.Read(Params.AccountID), Meta:Params ? Params.Meta : undefined};
|
||||
|
||||
Reference in New Issue
Block a user