Open gz-c opened 6 years ago
Suggest the following config parameters:
Params ideally can be set via command line, config file or env.
Suggest system logs to stdout AND sends an email when it gets an error including:
Write a quick readme.md with how to use/configure
Does the email/log need to contain the json returned by the API in case of delayed transaction?
Email should include it, but if for some reason its excessively large it can be truncated to some max size.
The log can say how many unconfirmed txns, the timestamp of the oldest and timestamp of the newest, using a human readable timestamp. Email should include this information too
Alexey has written the code, he is just tweaking it and he will check it in to master branch (no develop branch)
Using this endpoint: https://explorer.skycoin.net/api/pendingTxs
If an unconfirmed txn is in the array for more than 1 minute, send an alert
This service can be run in a cron job
The API response is documented here: https://github.com/skycoin/skycoin/blob/develop/src/api/README.md#get-unconfirmed-transactions The txid field can be used to identify the transaction.