-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter channel id #38
Conversation
Signed-off-by: Dongri Jin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dongrie I have put two comments. Please check them.
pkg/relay/ethereum/events.go
Outdated
@@ -160,6 +163,9 @@ func (chain *Chain) findRecvPacketEvents(ctx core.QueryContext, fromHeight uint6 | |||
if err != nil { | |||
return nil, fmt.Errorf("failed to parse RecvPacket event: err=%v, log=%v", err, log) | |||
} | |||
if event.Packet.SourceChannel != chain.Path().ChannelID { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In findWriteAckEvents
you chose DestinationChannel
, but you chose SourceChannel
here. Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix to DestinationChannel
Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dongrie LGTM! Thank you 🙇
Ethereum chain module's event query is modified to return only events from a specific channel