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(network): use current block number while waiting for new blocks #368

Merged
merged 1 commit into from
Feb 7, 2023

Conversation

dk1a
Copy link
Member

@dk1a dk1a commented Feb 3, 2023

Currently network waits for a new block, which means I must use a tickchain locally.
Perhaps it also delays loading for production chains with slowish block times, haven't tested that.

This fix uses the current block number if the rpc returns it before a new block. I may have missed some downstream problems, but it seems like a harmless change

@dk1a dk1a requested a review from alvrs as a code owner February 3, 2023 13:00
Copy link
Member

@alvrs alvrs left a comment

Choose a reason for hiding this comment

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

Lgtm!

@alvrs alvrs merged commit 09b77a7 into latticexyz:main Feb 7, 2023
@dk1a dk1a deleted the dk1a/network-from-current-blocknumber branch February 18, 2023 09:06
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.

None yet

2 participants