work around missing inputs error
This commit is contained in:
parent
54d04dcf2c
commit
cff147bb95
1 changed files with 5 additions and 2 deletions
|
@ -878,8 +878,10 @@ func (s *Sync) startWorker(workerNum int) {
|
||||||
if util.SubstringInSlice(err.Error(), errorsNoRetry) {
|
if util.SubstringInSlice(err.Error(), errorsNoRetry) {
|
||||||
log.Println("This error should not be retried at all")
|
log.Println("This error should not be retried at all")
|
||||||
} else if tryCount < s.MaxTries {
|
} else if tryCount < s.MaxTries {
|
||||||
if strings.Contains(err.Error(), "txn-mempool-conflict") ||
|
if util.SubstringInSlice(err.Error(), []string{
|
||||||
strings.Contains(err.Error(), "too-long-mempool-chain") {
|
"txn-mempool-conflict",
|
||||||
|
"too-long-mempool-chain",
|
||||||
|
}) {
|
||||||
log.Println("waiting for a block before retrying")
|
log.Println("waiting for a block before retrying")
|
||||||
err := s.waitForNewBlock()
|
err := s.waitForNewBlock()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -891,6 +893,7 @@ func (s *Sync) startWorker(workerNum int) {
|
||||||
"Not enough funds to cover this transaction",
|
"Not enough funds to cover this transaction",
|
||||||
"failed: Not enough funds",
|
"failed: Not enough funds",
|
||||||
"Error in daemon: Insufficient funds, please deposit additional LBC",
|
"Error in daemon: Insufficient funds, please deposit additional LBC",
|
||||||
|
"Missing inputs",
|
||||||
}) {
|
}) {
|
||||||
log.Println("checking funds and UTXOs before retrying...")
|
log.Println("checking funds and UTXOs before retrying...")
|
||||||
err := s.walletSetup()
|
err := s.walletSetup()
|
||||||
|
|
Loading…
Reference in a new issue