Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Remove a node check
Browse files Browse the repository at this point in the history
  • Loading branch information
nanexcool committed Dec 7, 2017
1 parent 7c8bca6 commit bc483d4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions libexec/setzer/setzer
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ OPTS="setzer [<options>] <command> [<args>]
setzer <command> --help
--
Options:
auto run setzer bot in auto mode (no user interaction)
C,config=file configuration file
S,spread=percent minimum percent deviation to update (default: 1)
I,interval=seconds seconds to wait between checks (default: 60)
R,resend=seconds seconds to wait before resending tx (default: 90)
S,spread=percent minimum percent deviation to update (default: 1)
auto run automatically without user intervention
Gas options:
gas-start=gas starting gas price per tx in wei
Expand Down
19 changes: 11 additions & 8 deletions libexec/setzer/setzer-bot
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,20 @@
### Usage: setzer bot [options]
### --
### Options:
### auto run setzer bot in auto mode (no user interaction)
### C,config=file configuration file
### I,interval=seconds seconds to wait between price checks (default: 60)
### S,spread=percent minimum percent deviation to update (default: 1)
### I,interval=seconds seconds to wait between checks (default: 60)
### R,resend=seconds seconds to wait before resending tx (default: 90)
### auto run automatically without user intervention
###
###
### Gas options:
### gas-start=gas starting gas price per tx in Gwei
### gas-inc=gas amount to increment gas price per tx in Gwei
### gas-max=gas maximum gas price to pay per tx in Gwei
### gas-start=gas starting gas price per tx in wei
### gas-inc=gas amount to increment gas price per tx in wei
### gas-max=gas maximum gas price to pay per tx in wei
###
### Miscellaneous:
### verbose output extra information (useful for debugging)

#set -ex

function log {
Expand Down Expand Up @@ -104,8 +109,6 @@ if ! [[ $SETZER_BOT_INIT ]]; then
echo "------- INITIALIZATION COMPLETE -------"
fi

getnode

expires=$(setzer expires "$SETZER_FEED")
log "Expires in `setzer --format "$expires"`"
if [ "$expires" -lt 3600 ]; then
Expand Down

0 comments on commit bc483d4

Please sign in to comment.