Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fixes/multiplelocks' into featur…
Browse files Browse the repository at this point in the history
…e/events
  • Loading branch information
lostystyg committed Aug 19, 2022
2 parents 46edf27 + 9df85fb commit fcf526c
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 6 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<p align="center">
<img src="./share/pixmaps/logo_color/sky_250.png" width="150px">
</p>

# Pocketnet CORE
<h1 align="center">Pocketnet Core</h1>

![GitHub](https://img.shields.io/github/license/pocketnetteam/pocketnet.api)
![contributors](https://img.shields.io/github/contributors/pocketnetteam/pocketnet.core)
![last_commit](https://img.shields.io/github/last-commit/pocketnetteam/pocketnet.core)
Expand Down
Binary file added share/pixmaps/logo_color/blue_250.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added share/pixmaps/logo_color/blue_pad_100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added share/pixmaps/logo_color/blue_pad_250.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added share/pixmaps/logo_color/red_250.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added share/pixmaps/logo_color/red_pad_100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added share/pixmaps/logo_color/red_pad_250.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added share/pixmaps/logo_color/sky_250.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added share/pixmaps/logo_color/sky_pad_100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added share/pixmaps/logo_color/sky_pad_250.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/pocketdb/repositories/ChainRepository.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ namespace PocketDb
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.Hash = ?
and not exists (select 1 from BlockingLists bl where bl.IdSource = us.Id and bl.IdTarget = ut.Id)
)sql");
TryBindStatementText(insListStmt, 1, txHash);
TryStepStatement(insListStmt);
Expand Down
2 changes: 1 addition & 1 deletion src/pocketdb/repositories/ConsensusRepository.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ namespace PocketDb
FROM BlockingLists b
JOIN Transactions us indexed by Transactions_Type_Last_String1_Height_Id
ON us.Last = 1 and us.Id = b.IdSource and us.Type = 100 and us.Height is not null
JOIN Transactions ut indexed by Transactions_Type_Last_String2_Height
JOIN Transactions ut indexed by Transactions_Type_Last_String1_Height_Id
ON ut.Last = 1 and ut.Id = b.IdTarget and ut.Type = 100 and ut.Height is not null
WHERE us.String1 = ?
and ut.String1 in (select ? union select value from json_each(?))
Expand Down
6 changes: 2 additions & 4 deletions src/pocketdb/repositories/MigrationRepository.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ namespace PocketDb
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 bc.Height >= b.Height)
and not exists (select 1 from BlockingLists bl where bl.IdSource = us.Id and bl.IdTarget = ut.Id)
)sql")

Expand Down Expand Up @@ -82,8 +81,7 @@ namespace PocketDb
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 bc.Height >= b.Height)
and not exists (select 1 from BlockingLists bl where bl.IdSource = us.Id and bl.IdTarget = ut.Id)
limit 1
)sql");
Expand Down

0 comments on commit fcf526c

Please sign in to comment.