minor
This commit is contained in:
parent
d3109e1016
commit
baec42a0e8
2 changed files with 5 additions and 1 deletions
5
setup.go
5
setup.go
|
@ -47,6 +47,9 @@ func (s *Sync) walletSetup() error {
|
|||
address := string(*addressResp)
|
||||
|
||||
amountToAdd *= 1.5 // add 50% margin for fees, future publishes, etc
|
||||
if amountToAdd < 1 {
|
||||
amountToAdd = 1
|
||||
}
|
||||
log.Printf("Adding %f credits", amountToAdd)
|
||||
lbrycrdd, err := lbrycrd.NewWithDefaultURL()
|
||||
if err != nil {
|
||||
|
@ -114,7 +117,7 @@ func (s *Sync) ensureEnoughUTXOs() error {
|
|||
s.waitUntilUTXOsConfirmed()
|
||||
}
|
||||
|
||||
target := 50
|
||||
target := 30
|
||||
count := 0
|
||||
|
||||
for _, utxo := range *utxolist {
|
||||
|
|
|
@ -207,6 +207,7 @@ func (s *Sync) startWorker(workerNum int) {
|
|||
} else if s.MaxTries > 1 {
|
||||
if strings.Contains(err.Error(), "non 200 status code received") ||
|
||||
strings.Contains(err.Error(), " reason: 'This video contains content from") ||
|
||||
strings.Contains(err.Error(), "dont know which claim to update") ||
|
||||
strings.Contains(err.Error(), "Playback on other websites has been disabled by the video owner") {
|
||||
log.Println("This error should not be retried at all")
|
||||
} else if tryCount >= s.MaxTries {
|
||||
|
|
Loading…
Reference in a new issue