-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ver 1.0.5 - low hot wallet balance emails, plus fixes
- Add example env file with the most common env options - Added `notify_low_funds`, `funds_low` and `last_notified` to Coin model - Added new deposit status `mapped` - meaning we know the destination details but it has not been converted yet, and could still fail - Add email configuration to settings, with new env vars - Notify ADMINS if a deposit failed to convert due to low wallet balance - Refactored `convert_coins.py` to be two stages (so that low balance email can semi-accurately tell you how many deposits are stuck) - First stage, deposits are validated, e.g. do they have a valid deposit address, or a memo for us to map it to a conversion? - Second stage, validated deposits are converted, and conversion object created - Cache get_token request in `SteemEngineLoader` to prevent spamming API for same token for every single deposit. - Ignore deposits from `market` in `SteemEngineLoader` - Text after the destination address in a deposit memo should now be used for the destination memo - Clean up logging - commented out un-necessary debug logging, and don't use spammy `log.exception` when we know why the exception happened (e.g. coin daemon dead) - Probably various small fixes and comment cleanup
- Loading branch information
1 parent
8e113e7
commit a7f08e6
Showing
13 changed files
with
499 additions
and
67 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
PLEASE_README=This is an EXAMPLE env file, and many of the settings specified in this file are OPTIONAL | ||
PLEASE_README=You should read the documentation to see what is and isn't required, and their defaults. | ||
PLEASE_README=You will also find information about each of these env vars in the folder steemengine/settings/ | ||
|
||
SECRET_KEY=SomeSecureRandomString | ||
DEBUG=false | ||
|
||
DB_BACKEND=postgresql | ||
DB_USER=steemengine | ||
DB_NAME=steemengine | ||
DB_PASS=MyDatabasePassword | ||
DB_HOST=localhost | ||
|
||
ADMINS=John Doe:[email protected],Jane [email protected] | ||
ALLOW_HOSTS=example.com,www.example.com | ||
SITE_URL=https://www.example.com | ||
|
||
[email protected] | ||
EMAIL_HOST=smtp.emailprovider.com | ||
EMAIL_USER=myemailuser | ||
EMAIL_PASSWORD=somesecurepassword | ||
EMAIL_PORT=587 | ||
EMAIL_TLS=true | ||
|
||
UNLOCK=mybeempassword | ||
|
||
EX_FEE=10 | ||
STEEM_RPC_NODES=https://steemd.privex.io,https://api.steemit.com |
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
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
Oops, something went wrong.