19 lines
416 B
Rust
19 lines
416 B
Rust
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
pub mod cli_handler;
|
|
pub mod grpc;
|
|
pub mod operators;
|
|
pub mod packagers;
|
|
|
|
use crate::utils::block_on;
|
|
use crate::SimpleOutput;
|
|
|
|
pub fn report_node(
|
|
node_pubkey: String,
|
|
contract: String,
|
|
reason: String,
|
|
) -> Result<SimpleOutput, grpc::Error> {
|
|
block_on(grpc::report_node(node_pubkey, contract, reason))?;
|
|
Ok(SimpleOutput::from("The node got reported."))
|
|
}
|