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 20 unused accounts being added on wallet import, and malformed lightweight proof of work requests for unused accounts #582

Merged
merged 1 commit into from Jun 1, 2023

Conversation

keerifox
Copy link
Member

@keerifox keerifox commented Apr 3, 2023

Starting Node V24.0, account_frontiers can return errors alongside valid hashes, e.g. :

{
  "frontiers": {
    "nano_3wfddg7a1paogrcwi3yhwnaerboukbr7rs3z3ino5toyq3yyhimo6f6egij6": "75BD65296241EB871918EBE3E99E9A191970A2724B3214B27F8AB205FF4FC30A",
    "nano_36uccgpjzhjsdbj44wm1y5hyz8gefx3wjpp1jircxt84nopxkxti5bzq1rnz": "error: Bad account number",
    "nano_1hrts7hcoozxccnffoq9hqhngnn9jz783usapejm57ejtqcyz9dpso1bibuy": "error: Account not found"
  }
}

This PR adds handling for account_frontiers RPC call return values that aren't valid hashes

Fixes #579

@Joohansson Joohansson merged commit a04d7b5 into Nault:master Jun 1, 2023
5 of 8 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.

Bug - work_generate passes error messages to RPC
3 participants