input-output-hk / js-chain-libs

chain-libs javascript SDK
Apache License 2.0
18 stars 14 forks source link

Add no funds error in faucet #89

Closed ecioppettini closed 4 years ago

ecioppettini commented 4 years ago

Return a 503 http status (Service unavailable) and a message when the faucet account has no funds to make the required transaction.

Note that as the faucet can only support one transaction at a time (because it queries the node for spending counter and balance), it will return a success message until the transaction that spends the funds is accepted by the node.

closes #87