Problem:
The testnetFaucet endpoint applies no cap on how many times a single app can request test satoshis per day. An app can call getTestcoins() an unlimited number of times, making it possible to drain faucet funds rapidly and starve other users of testnet coins.
Expected behaviour:
- Each app is identified by its appId when calling the faucet.
- An app is limited to 5 faucet requests per UTC calendar day.
- Requests beyond the daily limit are rejected with a clear error until the counter resets at midnight UTC.
- The client surfaces a user-readable message when the limit is reached.
Problem:
The testnetFaucet endpoint applies no cap on how many times a single app can request test satoshis per day. An app can call getTestcoins() an unlimited number of times, making it possible to drain faucet funds rapidly and starve other users of testnet coins.
Expected behaviour: