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

avoid calling getBlockCount() #344

Merged
merged 5 commits into from
Apr 17, 2024
Merged

Conversation

panleone
Copy link
Member

Abstract

Remove useless network call to getBlockCount() and use the global variable blockCount instead. In this way we do less network requests (and regardless this will be needed with websockets since there is not an analogous getBlockCount api call)

Also emit the signal 'new-block' only if the number of block actually changed


@panleone panleone added the Enhancement New feature or request label Apr 16, 2024
@panleone panleone self-assigned this Apr 16, 2024
Copy link

netlify bot commented Apr 16, 2024

Deploy Preview for cheery-moxie-4f1121 ready!

Name Link
🔨 Latest commit ea6b6c7
🔍 Latest deploy log https://app.netlify.com/sites/cheery-moxie-4f1121/deploys/661f84a123bc59000855ec25
😎 Deploy Preview https://deploy-preview-344--cheery-moxie-4f1121.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@panleone panleone requested a review from Duddino April 16, 2024 09:00
Copy link
Member

@JSKitty JSKitty left a comment

Choose a reason for hiding this comment

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

tACK ea6b6c7

@panleone
Copy link
Member Author

merging since the diff is quite trivial

@panleone panleone merged commit c6e96d3 into PIVX-Labs:master Apr 17, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

2 participants