diff --git a/Lib9c.Policy/NCStagePolicy.cs b/Lib9c.Policy/NCStagePolicy.cs index c7d4a21790..d14b9eefee 100644 --- a/Lib9c.Policy/NCStagePolicy.cs +++ b/Lib9c.Policy/NCStagePolicy.cs @@ -90,7 +90,15 @@ public bool Stage(BlockChain blockChain, Transaction transaction) { if (_accessControlService?.GetTxQuota(transaction.Signer) is { } acsTxQuota) { - _quotaPerSignerList.TryAdd(transaction.Signer, acsTxQuota); + if (_quotaPerSignerList.ContainsKey(transaction.Signer)) + { + _quotaPerSignerList[transaction.Signer] = acsTxQuota; + } + else + { + _quotaPerSignerList.TryAdd(transaction.Signer, acsTxQuota); + } + if (acsTxQuota == 0) { return false;