diff --git a/Lib9c.Policy/NCStagePolicy.cs b/Lib9c.Policy/NCStagePolicy.cs index 3c5376e7b9..ed45144883 100644 --- a/Lib9c.Policy/NCStagePolicy.cs +++ b/Lib9c.Policy/NCStagePolicy.cs @@ -20,7 +20,7 @@ public class NCStagePolicy : IStagePolicy public NCStagePolicy(TimeSpan txLifeTime, int quotaPerSigner, IAccessControlService? accessControlService = null) { - if (quotaPerSigner < 1) + if (quotaPerSigner < 0) { throw new ArgumentOutOfRangeException( $"{nameof(quotaPerSigner)} must be positive: ${quotaPerSigner}"); @@ -106,6 +106,13 @@ public bool Stage(BlockChain blockChain, Transaction transaction) return false; } } + else + { + if (_quotaPerSigner < 1) + { + return false; + } + } var deniedTxs = new[] {