Skip to content

Commit

Permalink
rename binary output
Browse files Browse the repository at this point in the history
handle funds better
  • Loading branch information
nikooo777 committed Mar 29, 2019
1 parent ce35994 commit c739884
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BINARY=prism-bin
BINARY=ytsync

DIR = $(shell cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)
BIN_DIR = ${DIR}/bin
Expand Down
6 changes: 4 additions & 2 deletions manager/ytsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,10 @@ func (s *Sync) startWorker(workerNum int) {
SendErrorToSlack("something went wrong while waiting for a block: %v", err)
break
}
} else if strings.Contains(err.Error(), "failed: Not enough funds") ||
strings.Contains(err.Error(), "Error in daemon: Insufficient funds, please deposit additional LBC") {
} else if util.SubstringInSlice(err.Error(), []string{
"Not enough funds to cover this transaction",
"failed: Not enough funds",
"Error in daemon: Insufficient funds, please deposit additional LBC"}) {
log.Println("refilling addresses before retrying")
err = s.walletSetup()
if err != nil {
Expand Down

0 comments on commit c739884

Please sign in to comment.