Skip to content

Commit

Permalink
Add error handling for failed enter-market transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeisses committed Nov 21, 2023
1 parent 5ff4023 commit a7e4041
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nosana_node/nosana.clj
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,9 @@ Running Nosana Node %s
:else (let [enter-sig (enter-market conf)]
(log :info "Entering the queue")
(when enter-sig
(<! (sol/await-tx< enter-sig (:network conf))))
(let [tx (<! (sol/await-tx< enter-sig (:network conf)))]
(when (:err (:meta tx))
(log :error "Error: could not enter the market."))))
(recur nil last-health-check true)))))))))

(defn use-nosana
Expand Down

0 comments on commit a7e4041

Please sign in to comment.