Skip to content

Commit

Permalink
chore: change hermes to forcerelay
Browse files Browse the repository at this point in the history
  • Loading branch information
liyukun committed Oct 27, 2023
1 parent 5b58b36 commit 2e80451
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ $ cargo install -p ibc-relayer-cli
$ forcerelay --version
```

Forcerelay can be executed by specifying a configuration file in the command line, otherwise it will access the `~/.hermes/config.toml`. We provide a pre-generated [example](https://github.com/synapseweb3/forcerelay/blob/main/config.toml) configuration file written for Axon and CKB (Testnet). To run Forcerelay, only minimal modifications are needed to this configuration:
Forcerelay can be executed by specifying a configuration file in the command line, otherwise it will access the `~/.forcerelay/config.toml`. We provide a pre-generated [example](https://github.com/synapseweb3/forcerelay/blob/main/config.toml) configuration file written for Axon and CKB (Testnet). To run Forcerelay, only minimal modifications are needed to this configuration:

```
websocket_addr = "ws://<YOUR_AXON_URL>:<WS_PORT>"
Expand Down
2 changes: 1 addition & 1 deletion crates/relayer-cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn main() {
// outputs consistent usage and help messages.
// https://github.com/informalsystems/hermes/issues/590
// Note: This can potentially break the normal cargo (or crates.io) workflow.
println!("cargo:rustc-env=CARGO_PKG_NAME=hermes");
println!("cargo:rustc-env=CARGO_PKG_NAME=forcerelay");
println!("cargo:rustc-env=CARGO_PKG_VERSION={}", version());
}

Expand Down
2 changes: 1 addition & 1 deletion crates/relayer-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ pub mod error;
pub mod prelude;

/// The path to the default configuration file, relative to the home directory.
pub const DEFAULT_CONFIG_PATH: &str = ".hermes/config.toml";
pub const DEFAULT_CONFIG_PATH: &str = ".forcerelay/config.toml";
4 changes: 2 additions & 2 deletions crates/relayer/src/chain/ckb4ibc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ use std::sync::RwLock;
use tendermint_rpc::endpoint::broadcast::tx_sync::Response;
use tokio::runtime::Runtime;
use tokio::sync::watch::Sender as WatchSender;
use tracing::log::{info, warn};
use tracing::log::{error, info, warn};

use self::extractor::{extract_connections_from_tx, extract_ibc_packet_from_tx};
use self::message::{convert_msg_to_ckb_tx, CkbTxInfo, Converter, MsgToTxConverter};
Expand Down Expand Up @@ -372,7 +372,7 @@ impl Ckb4IbcChain {
if let Ok(client_type) = self.config.lc_client_type(&client_id) {
resps.push((tx, cell_input, capacity, client_type));
} else {
warn!("skip local missing client_id found on-chain: {client_id}");
error!("skip local missing client_id found on-chain: {client_id}");
}
}
Ok(resps)
Expand Down
2 changes: 1 addition & 1 deletion crates/relayer/src/keyring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use serde::{Deserialize, Serialize};
use crate::{chain::ChainType, config::ChainConfig};
use errors::Error;

pub const KEYSTORE_DEFAULT_FOLDER: &str = ".hermes/keys/";
pub const KEYSTORE_DEFAULT_FOLDER: &str = ".forcerelay/keys/";
pub const KEYSTORE_DISK_BACKEND: &str = "keyring-test";
pub const KEYSTORE_FILE_EXTENSION: &str = "json";

Expand Down

0 comments on commit 2e80451

Please sign in to comment.