Skip to content

Commit

Permalink
Workaround for bug in ghostnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Groxan committed Oct 11, 2022
1 parent 68e02ad commit c07815b
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ protected override async Task MigrateContext(AppState state)

var stats = await Cache.Statistics.GetAsync(state.Level);
stats.TotalCreated += 3_000_000_000L;

if (state.ChainId == "NetXnHfVqm9iesp") // ghostnet
{
var votingPeriod = await Cache.Periods.GetAsync(58);
Db.TryAttach(votingPeriod);
votingPeriod.LastLevel = 0;
}
}

protected override async Task RevertContext(AppState state)
Expand Down

0 comments on commit c07815b

Please sign in to comment.