Skip to content

Commit

Permalink
Cleanup of staled rounds
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Sep 7, 2024
1 parent 6473344 commit bbbaca1
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 168 deletions.
4 changes: 2 additions & 2 deletions dkgNode/appsettings.Development.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.Hosting.Lifetime": "Information"
"Default": "Warning",
"Microsoft.Hosting.Lifetime": "Warning"
}
}
}
6 changes: 3 additions & 3 deletions dkgNode/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.Hosting.Lifetime": "Information",
"Microsoft.EntityFrameworkCore": "Information"
"Default": "Warning",
"Microsoft.Hosting.Lifetime": "Warning",
"Microsoft.EntityFrameworkCore": "Warning"
}
},
"Node": {
Expand Down
6 changes: 5 additions & 1 deletion dkgServiceNode/Controllers/OpsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,11 @@ public async Task<ActionResult<StatusResponse>> Status(StatusReport statusReport
var lastRoundHistory = dkgContext.GetLastNodeRoundHistory(node.Id, statusReport.RoundId);

RStatus? rStatus = null;
if (round != null) rStatus = round.Status;
if (round != null)
{
await UpdateRoundState(round);
rStatus = round.Status;
}

if (actionMap.TryGetValue((rStatus, statusReport.Status), out var function))
{
Expand Down
6 changes: 1 addition & 5 deletions dkgServiceNode/Data/DbEnsure.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,8 @@ public static void Ensure(string connectionString)
}

Ensure_0_8_0(connection);
PuVersionUpdate("0.9.6", connection);
PuVersionUpdate("0.10.2", connection);
PuVersionUpdate("0.11.0", connection);
EnsureVersion("0.12.1", sqlScript_0_12_1, connection);
PuVersionUpdate("0.12.2", connection);
PuVersionUpdate("0.12.3", connection);
PuVersionUpdate("0.12.4", connection);
}
}

Expand Down
156 changes: 0 additions & 156 deletions dkgServiceNode/Services/RequestProcessor/RequuestProcessor.cs

This file was deleted.

2 changes: 1 addition & 1 deletion dkgWebNode/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Logging": {
"LogLevel": {
"Default": "Debug",
"Default": "Warning",
"Microsoft.AspNetCore": "Warning"
}
},
Expand Down

0 comments on commit bbbaca1

Please sign in to comment.