Closed hivefive-space closed 1 year ago
I'm also impacted by a similar issue with the canto chain. I've built the latest version from master (5f4936f), the error is:
panic: Int64() out of bound
goroutine 216 [running]:
github.com/cosmos/cosmos-sdk/types.Dec.RoundInt64({0xc000d9fe78?})
/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.42.4/types/decimal.go:554 +0x8b
main.ValidatorsHandler.func1.1(0x0?, 0x0)
/app/cosmos-exporter-5f4936f0e725eff970995a34e67b85c7a1c65bda/validators.go:156 +0x45
sort.insertionSort_func({0xc000d9ffb8?, 0xc001109b90?}, 0x0, 0x3)
/usr/local/go/src/sort/zsortfunc.go:12 +0xb1
sort.pdqsort_func({0xc000d9ffb8?, 0xc001109b90?}, 0x3e938d0765b8?, 0x18?, 0xc000066800?)
/usr/local/go/src/sort/zsortfunc.go:73 +0x2dd
sort.Slice({0x10e6620?, 0xc001063098?}, 0x4?)
/usr/local/go/src/sort/slice.go:26 +0xfa
main.ValidatorsHandler.func1()
/app/cosmos-exporter-5f4936f0e725eff970995a34e67b85c7a1c65bda/validators.go:155 +0x31c
created by main.ValidatorsHandler
/app/cosmos-exporter-5f4936f0e725eff970995a34e67b85c7a1c65bda/validators.go:130 +0x16b3
Start command was:
cosmos-exporter \
--bech-prefix canto \
--denom canto \
--denom-coefficient 1000000000000000000 \
--node canto-grpc.polkachu.com:15590 \
--tendermint-rpc https://canto-rpc.polkachu.com:443
@hivefive-space, just pull requested a fix, can you try it? https://github.com/solarlabsteam/cosmos-exporter/pull/31
Edit: merged to master, can you let us know if that solves the issue for you too?
Hello
I have compiled the package from main with last commit (PR #18) and I receive the following error (please see below). The daemon successfully starts and works until prometheus makes the request.
Please fix it if possible.
I could not find how to see the version of current cosmos-exporter (not seen in --help, -V or -v or version) Here is the md5 hash 9dc766fa92cb370fbbc39932b1b10298 /usr/local/bin/cosmos-exporter