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: fix Tor ID deserialization issue #3950

Merged
merged 3 commits into from
Mar 24, 2022

Conversation

philipr-za
Copy link
Contributor

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

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.
Copy link
Member

@sdbondi sdbondi left a comment

Choose a reason for hiding this comment

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

LGTM - #3951 stores the identity sig in the case that the address is updated and node identity re-signed

aviator-app bot pushed a commit that referenced this pull request Mar 23, 2022
Description
---
- adds code to store the identity signature

Motivation and Context
---
Whenever the node address changes, the identity signature is resigned for the new address. This identity signature should be preserved and reloaded later.

Ref #3950 

How Has This Been Tested?
---
Manually: Checking that identity signature is stored and doesnt change between reboots
@aviator-app aviator-app bot merged commit c290ab9 into tari-project:development Mar 24, 2022
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