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

A couple of Wallet refactors #480

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Conversation

panleone
Copy link
Member

@panleone panleone commented Nov 27, 2024

Abstract

This PR contains two wallet refactors (that unfortunately got mixed in the same commit ):

  • toHistoricalTXs now takes in input only 1 Transaction instead of an array (we weren't using the array version anymore)
  • split the variable chains = 2 in an enum that explicitly tells what is the external chain and what is the change chain. This was done to remove the hardcoded numbers 0 and 1 around Wallet class

Testing

IMO is enough to check that tests are still passing


@panleone panleone requested review from JSKitty and Duddino November 27, 2024 09:35
Copy link

netlify bot commented Nov 27, 2024

Deploy Preview for cheery-moxie-4f1121 ready!

Name Link
🔨 Latest commit bd2e694
🔍 Latest deploy log https://app.netlify.com/sites/cheery-moxie-4f1121/deploys/674ed23e677d3d0008c35cea
😎 Deploy Preview https://deploy-preview-480--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 self-assigned this Nov 27, 2024
@panleone panleone added the Refactor A PR or suggestion for rewriting existing code. label Nov 27, 2024
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.

I hit this when attempting to sync an imported HD wallet (causing the wallet to freeze up).

image

Weirdly, it did not occur on my second test - it fully synchronised, but reporting this anyway as randomly failing to sync is obviously not good.

Copy link
Member

@Duddino Duddino left a comment

Choose a reason for hiding this comment

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

tACK

@Duddino Duddino merged commit 92be245 into PIVX-Labs:master Dec 3, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor A PR or suggestion for rewriting existing code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants