ingenuity-build / interchain-queries Goto Github PK
View Code? Open in Web Editor NEWBasic Interchain Query Relayer
License: Apache License 2.0
Basic Interchain Query Relayer
License: Apache License 2.0
The code in
interchain-queries/pkg/runner/run.go
Line 79 in dd35259
defer wg.Wait()
We should add a GH actions pipeline for building and releasing ICQ relayer.
Due to a mistyped hostname, icq failed to connect to an rpc node - however, instead of some meaningful issue, the following was logged out:
ts=2023-01-05T14:00:39.677636203Z caller=run.go:69 worker=init msg="starting icq relayer" version=icq/v0.7.8
--
Thu, Jan 5 2023 2:00:39 pm | ts=2023-01-05T14:00:39.680392069Z caller=run.go:93 worker=init msg="configured chain" chain=quicksilver-2
Thu, Jan 5 2023 2:00:39 pm | ts=2023-01-05T14:00:39.682616513Z caller=run.go:93 worker=init msg="configured chain" chain=stargaze-1
Thu, Jan 5 2023 2:00:39 pm | 2023/01/05 14:00:39 Error in Closing the routine
We require better error logging on failed connection/rpc.start() calls.
A key part of the Interchain queries module is that requests are provable, and therefore trustless. Without this piece, the data returned by a relayer cannot be appropriately trusted.
ts=2023-05-23T08:27:35.581190896Z caller=run.go:333 chain=quicksilver-2 src_chain=osmosis-1 worker=historic msg="Handling request" type=cosmos.staking.v1beta1.Query/Validators id=c6df5a67a1ef74b31fe3fbfbf271dcf54f7d98cf9b746c2ac6855d1727cfb868 height=10762301
ts=2023-05-23T08:27:35.592653722Z caller=run.go:333 chain=quicksilver-2 src_chain=regen-1 worker=historic msg="Handling request" type=cosmos.staking.v1beta1.Query/Validators id=c6df5a67a1ef74b31fe3fbfbf271dcf54f7d98cf9b746c2ac6855d1727cfb868 height=10762301
ts=2023-05-23T08:27:42.137338766Z caller=run.go:592 worker=flusher chain=quicksilver-2 msg="Sending batch of 2 messages"
ts=2023-05-23T08:27:42.137421931Z caller=run.go:662 worker=flusher chain=quicksilver-2 msg="Added SubmitResponse message" id=c6df5a67a1ef74b31fe3fbfbf271dcf54f7d98cf9b746c2ac6855d1727cfb868
ts=2023-05-23T08:27:45.765372879Z caller=run.go:636 worker=flusher chain=quicksilver-2 msg="Sent batch of 1 (deduplicated) messages"
panic: panic(6): post failed: Post "http://x5.x17.10x.2xx:xx67": EOF
goroutine 244 [running]:
github.com/ingenuity-build/interchain-queries/pkg/runner.doRequest({{0xc0012aa610, 0xd}, {0xc0004051a0, 0xc}, {0xc0004051e8, 0x7}, {0xc001bc8040, 0x40}, {0xc001051fb0, 0x11}, ...}, ...)
/home/xxxx/interchain-queries/pkg/runner/run.go:329 +0x25b9
github.com/ingenuity-build/interchain-queries/pkg/runner.doRequestWithMetrics({{0xc0012aa610, 0xd}, {0xc0004051a0, 0xc}, {0xc0004051e8, 0x7}, {0xc001bc8040, 0x40}, {0xc001051fb0, 0x11}, ...}, ...)
/home/xxx/interchain-queries/pkg/runner/run.go:314 +0x145
created by github.com/ingenuity-build/interchain-queries/pkg/runner.handleEvent
/home/xxx/interchain-queries/pkg/runner/run.go:256 +0x845
Release: icq/v0.8.2
Long term , we ought to pass in proto.Message
with the appropriate request type and pass this to Invoke directly (and have the Request type instantiation done by the application not by the relayer.
In order to be able to monitor the performance and behaviour of the relayer, we need to add prometheus metrics to the application.
The code in
interchain-queries/pkg/runner/run.go
Lines 52 to 79 in dd35259
Short term fix; we need to add query types for staking/DelegatorDelegations
and staking/Validators
query types.
Will be superceded by #2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.