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

Cache transaction ids #302

Merged
merged 3 commits into from
Feb 28, 2024
Merged

Cache transaction ids #302

merged 3 commits into from
Feb 28, 2024

Conversation

Duddino
Copy link
Member

@Duddino Duddino commented Feb 26, 2024

Abstract

MPW was spending a lot of time calculating transaction ids, especially on bigger wallets.
This PR aims to lazily cache the txids. The transaction class was wrapped with a Proxy, and each set call invalidates the txid cache.
This has a big impact on really big testnet wallets, previously MPW would hang each block.

Testing

Test that the general send/receive functionality remains the same.

Copy link

netlify bot commented Feb 26, 2024

Deploy Preview for cheery-moxie-4f1121 ready!

Name Link
🔨 Latest commit c99cd1d
🔍 Latest deploy log https://app.netlify.com/sites/cheery-moxie-4f1121/deploys/65ddf810cac4c900081c86bb
😎 Deploy Preview https://deploy-preview-302--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.

Liquid369
Liquid369 previously approved these changes Feb 26, 2024
Copy link

@Liquid369 Liquid369 left a comment

Choose a reason for hiding this comment

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

tACK 48499c3
Much-needed improvement for larger wallets

Copy link
Member

@Luke-Larsen Luke-Larsen left a comment

Choose a reason for hiding this comment

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

tACK c99cd1d

Copy link
Member

@panleone panleone left a comment

Choose a reason for hiding this comment

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

utACK

@panleone panleone merged commit fee08ca into PIVX-Labs:master Feb 28, 2024
7 checks 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.

4 participants