Skip to content

Commit

Permalink
point healthcheck to ip
Browse files Browse the repository at this point in the history
  • Loading branch information
cryi committed Jun 1, 2024
1 parent e79016a commit 401d8ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions configuration/healthchecks/baker
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
local hjson = require "hjson"
local stateFile = "/tmp/baker-healthcheck-state"

local response = net.download_string("http://localhost:8732/chains/main/blocks/head/header")
local response = net.download_string("http://127.0.0.1:8732/chains/main/blocks/head/header")
local header = hjson.decode(response)

local ok, pastLevelString = fs.safe_read_file(stateFile)
local pastLevel = 0
local pastLevel = 0
if ok then
pastLevel = tonumber(pastLevelString) or 0
end
Expand Down
2 changes: 1 addition & 1 deletion src/version-info.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local TEZBOX_VERSIOn = "0.2.1"
local TEZBOX_VERSIOn = "0.2.2"

return {
VERSION = TEZBOX_VERSIOn,
Expand Down

0 comments on commit 401d8ab

Please sign in to comment.