Skip to content

Commit

Permalink
add suggested change
Browse files Browse the repository at this point in the history
  • Loading branch information
area363 committed Nov 23, 2023
1 parent e41494c commit 96c2bad
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Lib9c.Policy/NCStagePolicy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,7 @@ public bool Stage(BlockChain blockChain, Transaction transaction)
{
if (_accessControlService?.GetTxQuota(transaction.Signer) is { } acsTxQuota)
{
if (_quotaPerSignerList.ContainsKey(transaction.Signer))
{
_quotaPerSignerList[transaction.Signer] = acsTxQuota;
}
else
{
_quotaPerSignerList.TryAdd(transaction.Signer, acsTxQuota);
}
_quotaPerSignerList[transaction.Signer] = acsTxQuota;

if (acsTxQuota == 0)
{
Expand Down

0 comments on commit 96c2bad

Please sign in to comment.