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(wallet): tor identity private key needs to be serialized #3946

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Mar 23, 2022

Description

  • fixes regression where tor identity private key is not serialised in wallet db

Motivation and Context

Following error on wallet startup

ExitError { exit_code: WalletError, details: Some("Wallet storage error: `Error converting a type: `An error occurred de-/serialising an object from/into JSON``") }

Ref #3905

How Has This Been Tested?

Wallet starts up

@aviator-app aviator-app bot merged commit a68614e into tari-project:development Mar 23, 2022
@sdbondi sdbondi deleted the wallet-fix-json-error-on-startup branch March 23, 2022 07:50
philipr-za added a commit to philipr-za/tari that referenced this pull request Mar 23, 2022
Due to an issue with excluding the private key from the TorIdentity serialization that was fixed in tari-project#3946 any console wallets that ran the old code would crash on startup with a serialization error.

This PR adds some resilience to the startup process that if it cannot deserialize the old Tor Id it will log the issue and then use a newly generated one.
aviator-app bot pushed a commit that referenced this pull request Mar 24, 2022
Description
---
Due to an issue with excluding the private key from the TorIdentity serialization that was fixed in #3946 any console wallets that ran the old code would crash on startup with a serialization error.

This PR adds some resilience to the startup process that if it cannot deserialize the old Tor Id it will log the issue and then use a newly generated one.

How Has This Been Tested?
---
Manually
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.

2 participants