Skip to content

Commit

Permalink
Orig height for activities
Browse files Browse the repository at this point in the history
  • Loading branch information
lostystyg committed Jul 22, 2022
1 parent eb5c9e6 commit 9845755
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/pocketdb/repositories/web/WebRpcRepository.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4692,7 +4692,7 @@ namespace PocketDb
c.Hash,
c.Type,
null,
c.Height as Height,
orig.Height as Height,
c.BlockNum as BlockNum,
oc.Value,
pc.String1,
Expand Down Expand Up @@ -4724,6 +4724,9 @@ namespace PocketDb
and (c.Height < ? or (c.Height = ? and c.BlockNum < ?))
and c.String1 = ?
left join Transactions orig
on orig.Hash = c.String2
left join TxOutputs oc indexed by TxOutputs_TxHash_AddressHash_Value
on oc.TxHash = c.Hash and oc.AddressHash = p.String1 and oc.AddressHash != c.String1
Expand Down Expand Up @@ -5036,7 +5039,7 @@ namespace PocketDb
r.Hash,
r.Type,
null,
r.Height as Height,
orig.Height as Height,
r.BlockNum as BlockNum,
null,
pr.String2,
Expand All @@ -5058,6 +5061,9 @@ namespace PocketDb
from Transactions r indexed by Transactions_Type_Last_String1_Height_Id
left join Transactions orig
on orig.Hash = r.String2
join Transactions p indexed by Transactions_Type_Last_String2_Height
on p.Type in (200,201,202)
and p.Last = 1
Expand Down

0 comments on commit 9845755

Please sign in to comment.