-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Config parameter for celestia light node store directory (#1066)
- Loading branch information
Showing
7 changed files
with
188 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 11 additions & 2 deletions
13
protocol-units/da/movement/protocol/util/src/config/light.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
use super::default::default_celestia_light_node_key_name; | ||
use super::default::{default_celestia_light_node_key_name, default_celestia_light_node_store}; | ||
|
||
use serde::{Deserialize, Serialize}; | ||
|
||
use std::path::PathBuf; | ||
|
||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] | ||
pub struct Config { | ||
/// Name of the node's signing key in the keyring | ||
#[serde(default = "default_celestia_light_node_key_name")] | ||
pub key_name: String, | ||
/// Path name of the node store directory | ||
#[serde(default)] | ||
pub node_store: Option<PathBuf>, | ||
} | ||
|
||
impl Default for Config { | ||
fn default() -> Self { | ||
Self { key_name: default_celestia_light_node_key_name() } | ||
Self { | ||
key_name: default_celestia_light_node_key_name(), | ||
node_store: default_celestia_light_node_store(), | ||
} | ||
} | ||
} |
Oops, something went wrong.