Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Relayer panics on IBC transfers if SETTLEMENT_CONFIG is not defined #22

Open
mtsitrin opened this issue Feb 6, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@mtsitrin
Copy link

mtsitrin commented Feb 6, 2023

When relayer tries to relay packets, it panics if settlement_config not defined.

Feb 06 13:04:57 ip-172-31-34-224 bash[60151]: # ------------------------------ run the ibc relayer ----------------------------- #
Feb 06 13:04:57 ip-172-31-34-224 bash[60153]: ts=2023-02-06T13:04:57.580131Z lvl=info msg="Debug server listening" sys=debughttp addr=localhost:7597
Feb 06 13:04:57 ip-172-31-34-224 bash[60153]: ts=2023-02-06T13:04:57.589939Z lvl=info msg="Unrelayed destination packets" dst_chain_id=c-35 dst_channel_id=channel-0 seqs=1
Feb 06 13:04:57 ip-172-31-34-224 bash[60153]: panic: runtime error: invalid memory address or nil pointer dereference
Feb 06 13:04:57 ip-172-31-34-224 bash[60153]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x338 pc=0x1259b21]
Feb 06 13:04:57 ip-172-31-34-224 bash[60153]: goroutine 69 [running]:
Feb 06 13:04:57 ip-172-31-34-224 bash[60153]: github.com/cosmos/relayer/v2/relayer.(*SettlementClient).GetLatestFinalizedStateHeight(0x0, {0xc000d16b28, 0x11})
Feb 06 13:04:57 ip-172-31-34-224 bash[60153]:         /home/ubuntu/dymension/relayer/relayer/settlement-client.go:59 +0x61
Feb 06 13:04:57 ip-172-31-34-224 bash[60153]: github.com/cosmos/relayer/v2/relayer.QueryLatestFinalizedStateHeight.func1()
Feb 06 13:04:57 ip-172-31-34-224 bash[60153]:         /home/ubuntu/dymension/relayer/relayer/query.go:43 +0x85
Feb 06 13:04:57 ip-172-31-34-224 bash[60153]: golang.org/x/sync/errgroup.(*Group).Go.func1()
Feb 06 13:04:57 ip-172-31-34-224 bash[60153]:         /home/ubuntu/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x64
Feb 06 13:04:57 ip-172-31-34-224 bash[60153]: created by golang.org/x/sync/errgroup.(*Group).Go
Feb 06 13:04:57 ip-172-31-34-224 bash[60153]:         /home/ubuntu/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:72 +0xa5

Expected result: Relayer panic on start if settlement_config not defined

@mtsitrin mtsitrin added the bug Something isn't working label Feb 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant