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

Fix: logsByTx array does not match transaction array #99

Merged
merged 2 commits into from
Aug 11, 2023

Conversation

marino39
Copy link
Contributor

No description provided.

ethreceipts/ethreceipts.go Show resolved Hide resolved
@marino39 marino39 merged commit 5d971a2 into master Aug 11, 2023
12 checks passed
@marino39 marino39 deleted the ethrecipt-timesout branch August 11, 2023 11:19
for _, log := range logs {
log := log
out[log.TxIndex] = append(out[log.TxIndex], &log)
Copy link
Member

Choose a reason for hiding this comment

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

btw, I do remember writing this function long ago -- and my original implementation was similar to what you have now, but then changed it to place in the TxnIndex ... I can't remember exactly why, but it might have been that some nodes gave these to us in the wrong order or something..? I can't recall, but there was a reason. We can just look out for stuff in future around here if anything with receipt listener is acting up

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.

3 participants