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

chore: obscure grpc error response #3995

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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