Skip to content

Commit

Permalink
Add quebecnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Groxan committed Nov 13, 2024
1 parent 1f30e28 commit a8b07b6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ protected override void UpgradeParameters(Protocol protocol, Protocol prev)
protocol.SmartRollupChallengeWindow = prev.SmartRollupChallengeWindow * 5 / 4;
protocol.SmartRollupTimeoutPeriod = prev.SmartRollupTimeoutPeriod * 5 / 4;
protocol.BlocksPerSnapshot = protocol.BlocksPerCycle;
protocol.MaxExternalOverOwnStakeRatio = 9;
protocol.StakePowerMultiplier = 3;
}
}

Expand Down
2 changes: 1 addition & 1 deletion Tzkt.Sync/Protocols/Handlers/Proto21/Proto21Handler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Proto21Handler : ProtocolHandler
public override IDiagnostics Diagnostics { get; }
public override IValidator Validator { get; }
public override IRpc Rpc { get; }
public override string VersionName => "beta";
public override string VersionName => "quebec_021";
public override int VersionNumber => 21;

public Proto21Handler(TezosNode node, TzktContext db, CacheService cache, QuotesService quotes, IServiceProvider services, IConfiguration config, ILogger<Proto21Handler> logger, IMetrics metrics)
Expand Down
3 changes: 1 addition & 2 deletions Tzkt.Sync/Protocols/Helpers/Chains.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ static class Chains
"NetXyuzvDo2Ugzb" => "nairobinet",
"NetXxWsskGahzQB" => "oxfordnet",
"NetXXWAHLEvre9b" => "parisnet",
"NetXyNQFuy15fmq" => "betanet",
"NetXsTfFgyGbHTz" => "betanet",
"NetXuTeGinLEqxp" => "quebecnet",
_ => "private"
};
}
Expand Down
2 changes: 1 addition & 1 deletion Tzkt.Sync/Protocols/TezosProtocols.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private static ProtocolHandler GetProtocolHandler(IServiceProvider services, str
"PtParisBxoLz5gzMmn3d9WBQNoPSZakgnkMC2VNuQ3KXfUtUQeZ" => services.GetRequiredService<Proto19Handler>(),
"PsParisCZo7KAh1Z1smVd9ZMZ1HHn5gkzbM94V3PLCpknFWhUAi" => services.GetRequiredService<Proto20Handler>(),
"PtA4NFGxa5mLmPaEAAxAofESvLzZPSJ6GQz66SobecGbnCy3FXE" => services.GetRequiredService<Proto21Handler>(),
"PtBetaaEZxGcn9JDpkpAZ6E92Kh7bQb5FDoTCeYhmkfcwNehZcT" => services.GetRequiredService<Proto21Handler>(),
"PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg" => services.GetRequiredService<Proto21Handler>(),
_ => null,
};
}
Expand Down

0 comments on commit a8b07b6

Please sign in to comment.