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

Fixed panic in SubscribeOnTransactions method #146

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

pr0n1x
Copy link
Contributor

@pr0n1x pr0n1x commented Nov 28, 2023

In some cases first transaction in the result is fulfils this condition

if tx.LT <= lastProcessedLT {

Therefore transactions variable contains empty slice which leads to panic in this line
lastProcessedLT = transactions[0].LT // mark last transaction as known to not trigger twice

@xssnick
Copy link
Owner

xssnick commented Nov 28, 2023

Good catch, thank you! Will merge it tomorrow and make a new fixup tag

@xssnick xssnick changed the base branch from master to dev-v186 November 29, 2023 05:40
@xssnick xssnick merged commit 6eeee92 into xssnick:dev-v186 Nov 29, 2023
1 check failed
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