Skip to content

Commit

Permalink
change max transaction per signer value to default for all networks
Browse files Browse the repository at this point in the history
  • Loading branch information
area363 committed Feb 7, 2024
1 parent 4b88302 commit 178f822
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions Lib9c.Policy/Policy/MaxTransactionsPerSignerPerBlockPolicy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,16 @@ private MaxTransactionsPerSignerPerBlockPolicy(
new MaxTransactionsPerSignerPerBlockPolicy(int.MaxValue);

public static IVariableSubPolicy<int> Odin =>
Default
// Note: Introduced to prevent transactions spamming that may result in
// the chain grinding to a halt without meaningful state transitions happening.
// See https://github.com/planetarium/libplanet/issues/1449.
// Issued for v100086.
// FIXME: Starting index and value must be finalized accordingly before deployment.
.Add(new SpannedSubPolicy<int>(
startIndex: 2_800_001,
value: 4));
Default;

public static IVariableSubPolicy<int> Heimdall =>
Default;

// Note: For internal testing.
public static IVariableSubPolicy<int> OdinInternal =>
Default
.Add(new SpannedSubPolicy<int>(
startIndex: 2_800_001,
value: 4));
Default;

public static IVariableSubPolicy<int> Heimdall =>
Default
.Add(new SpannedSubPolicy<int>(
startIndex: 1,
value: 4));
public static IVariableSubPolicy<int> HeimdallInternal =>
Default;
}
}

0 comments on commit 178f822

Please sign in to comment.