Skip to content

Commit

Permalink
fix(wallet): tor identity private key needs to be serialized (#3946)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sdbondi authored Mar 23, 2022
1 parent c3ac80d commit a68614e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion comms/src/tor/hidden_service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ fn multiaddr_from_service_id_and_port(service_id: &str, onion_port: u16) -> Resu
#[derive(Clone, Derivative, Serialize, Deserialize)]
#[derivative(Debug)]
pub struct TorIdentity {
#[serde(skip_serializing)]
#[derivative(Debug = "ignore")]
pub private_key: PrivateKey,
pub service_id: String,
Expand Down

0 comments on commit a68614e

Please sign in to comment.