Skip to content
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

Merged
merged 3 commits into from
Mar 28, 2024
Merged

Filter channel id #38

merged 3 commits into from
Mar 28, 2024

Conversation

dongrie
Copy link
Contributor

@dongrie dongrie commented Mar 15, 2024

Ethereum chain module's event query is modified to return only events from a specific channel

Signed-off-by: Dongri Jin <[email protected]>
@dongrie dongrie requested a review from siburu March 15, 2024 00:20
Copy link
Contributor

@siburu siburu left a 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.

@@ -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 {
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix to DestinationChannel

pkg/relay/ethereum/events.go Show resolved Hide resolved
Signed-off-by: Dongri Jin <[email protected]>
@dongrie dongrie requested a review from siburu March 21, 2024 01:15
Copy link
Contributor

@siburu siburu left a 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 🙇

@siburu siburu merged commit 7a84862 into datachainlab:main Mar 28, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants