Skip to content

Commit

Permalink
chore: obscure grpc error response
Browse files Browse the repository at this point in the history
  • Loading branch information
Cifko committed Apr 28, 2022
1 parent 9e0ec36 commit 26a02a5
Show file tree
Hide file tree
Showing 3 changed files with 317 additions and 91 deletions.
4 changes: 4 additions & 0 deletions applications/tari_base_node/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ impl BaseNodeContext {
.expect_handle::<StateMachineHandle>()
.get_status_info_watch()
}

pub fn get_report_grpc_error(&self) -> bool {
self.config.base_node.report_grpc_error
}
}

/// Sets up and initializes the base node, creating the context and database
Expand Down
2 changes: 2 additions & 0 deletions applications/tari_base_node/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ pub struct BaseNodeConfig {
pub metadata_auto_ping_interval: Duration,
pub state_machine: BaseNodeStateMachineConfig,
pub resize_terminal_on_startup: bool,
pub report_grpc_error: bool,
}

impl Default for BaseNodeConfig {
Expand Down Expand Up @@ -136,6 +137,7 @@ impl Default for BaseNodeConfig {
metadata_auto_ping_interval: Duration::from_secs(30),
state_machine: Default::default(),
resize_terminal_on_startup: true,
report_grpc_error: false,
}
}
}
Expand Down
Loading

0 comments on commit 26a02a5

Please sign in to comment.