Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
soareschen committed Sep 28, 2021
1 parent 29ff94f commit ddd7d40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion abci/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//! have them interact. In practice, the client interaction will be performed
//! by a full Tendermint node.
//!
//! ```ignore
//! ```
//! use tendermint_abci::{KeyValueStoreApp, ServerBuilder, ClientBuilder};
//! use tendermint_proto::abci::{RequestEcho, RequestDeliverTx, RequestQuery};
//!
Expand Down
3 changes: 2 additions & 1 deletion config/src/node_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ impl NodeKey {

/// Get the public key for this keypair
pub fn public_key(&self) -> PublicKey {
#[allow(unreachable_patterns)]
match &self.priv_key {
PrivateKey::Ed25519(keypair) => keypair.public.into(),
_ => todo!(),
_ => unreachable!(),
}
}

Expand Down

0 comments on commit ddd7d40

Please sign in to comment.