From 441534051db19afd8e25c16cd5d953d6810aedf5 Mon Sep 17 00:00:00 2001 From: Christopher Tarry Date: Thu, 5 Dec 2024 12:31:26 -0500 Subject: [PATCH 1/3] panic on index error --- explorer/explorer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/explorer/explorer.go b/explorer/explorer.go index 672d2b73..e0293dc1 100644 --- a/explorer/explorer.go +++ b/explorer/explorer.go @@ -139,6 +139,7 @@ func NewExplorer(cm ChainManager, store Store, batchSize int, scanCfg config.Sca } if err := e.syncStore(lastTip, batchSize); err != nil { e.log.Error("failed to sync store", zap.Error(err)) + panic(err) } } }() From c56345e5bf6bd87e5f332f4b941c897c1e9e77d1 Mon Sep 17 00:00:00 2001 From: Christopher Tarry Date: Thu, 5 Dec 2024 16:39:10 -0500 Subject: [PATCH 2/3] use logger's panic function --- explorer/explorer.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/explorer/explorer.go b/explorer/explorer.go index e0293dc1..9425b34c 100644 --- a/explorer/explorer.go +++ b/explorer/explorer.go @@ -138,8 +138,7 @@ func NewExplorer(cm ChainManager, store Store, batchSize int, scanCfg config.Sca e.log.Error("failed to get tip", zap.Error(err)) } if err := e.syncStore(lastTip, batchSize); err != nil { - e.log.Error("failed to sync store", zap.Error(err)) - panic(err) + e.log.Panic("failed to sync store", zap.Error(err)) } } }() From 93074376dae7e109446fd2a3e230f0d307871d3a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 09:32:37 +0000 Subject: [PATCH 3/3] Bump go.sia.tech/core in the all-dependencies group Bumps the all-dependencies group with 1 update: [go.sia.tech/core](https://github.com/SiaFoundation/core). Updates `go.sia.tech/core` from 0.7.1-0.20241203043244-c435a355b1da to 0.7.1 - [Release notes](https://github.com/SiaFoundation/core/releases) - [Commits](https://github.com/SiaFoundation/core/commits/v0.7.1) --- updated-dependencies: - dependency-name: go.sia.tech/core dependency-type: direct:production update-type: version-update:semver-patch dependency-group: all-dependencies ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index 83c1ef70..97045cb7 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ toolchain go1.23.2 require ( github.com/ip2location/ip2location-go v8.3.0+incompatible github.com/mattn/go-sqlite3 v1.14.24 - go.sia.tech/core v0.7.1-0.20241203043244-c435a355b1da + go.sia.tech/core v0.7.1 go.sia.tech/coreutils v0.7.1-0.20241203170156-ac0cf880fa70 go.sia.tech/jape v0.12.1 go.uber.org/zap v1.27.0 diff --git a/go.sum b/go.sum index 27ce0c70..436db51c 100644 --- a/go.sum +++ b/go.sum @@ -21,12 +21,8 @@ github.com/stretchr/testify v1.8.3 h1:RP3t2pwF7cMEbC1dqtB6poj3niw/9gnV4Cjg5oW5gt github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= go.etcd.io/bbolt v1.3.11 h1:yGEzV1wPz2yVCLsD8ZAiGHhHVlczyC9d1rP43/VCRJ0= go.etcd.io/bbolt v1.3.11/go.mod h1:dksAq7YMXoljX0xu6VF5DMZGbhYYoLUalEiSySYAS4I= -go.sia.tech/core v0.6.3 h1:7VdCSF61td1iatjGc5xt8WwCZgyB91mTvKhuL35o234= -go.sia.tech/core v0.6.3/go.mod h1:4v+aT/33857tMfqa5j5OYlAoLsoIrd4d7qMlgeP+VGk= -go.sia.tech/core v0.7.1-0.20241203043244-c435a355b1da h1:taO86czGly5SIb8UswVI2W7rmxhmv9G4C93zoAwtfxk= -go.sia.tech/core v0.7.1-0.20241203043244-c435a355b1da/go.mod h1:4v+aT/33857tMfqa5j5OYlAoLsoIrd4d7qMlgeP+VGk= -go.sia.tech/coreutils v0.7.0 h1:YpgOUD4vrpDz0KC7FJz+UCOaKaqV5EkX3gMUUmJoz5s= -go.sia.tech/coreutils v0.7.0/go.mod h1:eMoqzqO4opKQ6n9tTTxHQmccfNlj+8RFOYuDSL/Qd4g= +go.sia.tech/core v0.7.1 h1:PrKh19Ql5vJbQbB5YGtTHQ8W3fRF8hhYnR4kPOIOIME= +go.sia.tech/core v0.7.1/go.mod h1:gB8iXFJFSV8XIHRaL00CL6Be+hyykB+SYnvRPHCCc/E= go.sia.tech/coreutils v0.7.1-0.20241203170156-ac0cf880fa70 h1:ksY8McNsjadZvAzEISY+sfsJmOVRhLGr1oN64dpZtFY= go.sia.tech/coreutils v0.7.1-0.20241203170156-ac0cf880fa70/go.mod h1:d6jrawloc02MCXi/EVc8FIN5h3C6XDiMs4fuFMcU0PU= go.sia.tech/jape v0.12.1 h1:xr+o9V8FO8ScRqbSaqYf9bjj1UJ2eipZuNcI1nYousU=