Constellation-Labs / constellation

:milky_way::satellite: Decentralized Application Integration Platform
Apache License 2.0
153 stars 40 forks source link

Rate limiter should lookup for transactions per snapshot #1553

Open marcinwadon opened 3 years ago

marcinwadon commented 3 years ago

Currently the rate limiter lookups for all transactions in memory pending for snapshots and use that for calculating permits for future transactions. Rate limiter should allow for 1 transaction with no fee per snapshot, so it should lookup for transactions within the next snapshot height only (ignore transactions in closed range heights waiting for snapshots).