Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/0.21' into feature/events
Browse files Browse the repository at this point in the history
  • Loading branch information
lostystyg committed Aug 12, 2022
2 parents 3a49aa5 + 1bbe483 commit c26ddf0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/pocketdb/repositories/ChainRepository.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -699,14 +699,8 @@ namespace PocketDb
--and ut.String1 = b.String2
and ut.String1 in (select b.String2 union select value from json_each(b.String3))
and ut.Height > 0
where b.Type in (305)
-- and b.Last = 1
where b.Type in (306)
and b.Height >= ?
and not exists (select 1 from Transactions bc indexed by Transactions_Type_Last_String1_String2_Height
where bc.Type in (306) and bc.Last = 1 and bc.String1 = b.String1
and bc.String2 in (select b.String2 union select value from json_each(b.String3))
and bc.Height > 0
and bc.Id >= b.Id)
and not exists (select 1 from BlockingLists bl where bl.IdSource = us.Id and bl.IdTarget = ut.Id)
)sql");
TryBindStatementInt(insListStmt, 1, height);
Expand Down

0 comments on commit c26ddf0

Please sign in to comment.