forked from janoside/btc-rpc-explorer
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a temporary rate limit to /address views
That view rendering could pretty resource consuming when the address we are looking for has a very long transaction history. I'm going to temporarely add a rate limit for that view that take into account the number of requests for a given time interval by the same IP address. Once pagination would be provided by Eletrum servers (eg Rostrum) for the used methods (eg get_history) we could use it to reduce the amount of load anda data involved and we will be able to remove the rate limit on the page.
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters