Skip to content

Commit

Permalink
remove embed feature, enable backtrace
Browse files Browse the repository at this point in the history
  • Loading branch information
Tumas committed Jan 24, 2025
1 parent c6aa995 commit 2169fdb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
12 changes: 6 additions & 6 deletions bindings/c/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ authors = ["Grandine <[email protected]>"]
crate-type = ["staticlib", "cdylib"]

[dependencies]
runtime = { workspace = true, features = ["network-goerli", "network-mainnet", "network-sepolia", "network-shadow", "network-holesky", "embed"] }
runtime = { workspace = true, features = ["network-goerli", "network-mainnet", "network-sepolia", "network-shadow", "network-holesky"] }
directories = { workspace = true }
grandine_version = { workspace = true }
validator = { workspace = true, features = ["embed"] }
validator = { workspace = true, features = [] }
fork_choice_control = { workspace = true }
fork_choice_store = { workspace = true }
eth1_api = { workspace = true, features = ["embed"] }
signer = { workspace = true, features = ["embed"] }
eth1_api = { workspace = true, features = [] }
signer = { workspace = true, features = [] }
slashing_protection = { workspace = true }
http_api = { workspace = true, features = ["embed"] }
slasher = { workspace = true, features = ["embed"] }
http_api = { workspace = true, features = [] }
slasher = { workspace = true, features = [] }
anyhow = { workspace = true }
types = { workspace = true }
thiserror = { workspace = true }
Expand Down
2 changes: 2 additions & 0 deletions bindings/c/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ pub fn try_run(argc: u64, argv: *const *const c_char) -> Result<()> {

#[no_mangle]
pub extern "C" fn grandine_run(argc: u64, argv: *const *const c_char) -> u64 {
std::env::set_var("RUST_BACKTRACE", "1");

// let argc = argc as usize;

// // Convert the raw pointer `argv` to a Rust slice of pointers
Expand Down
4 changes: 2 additions & 2 deletions eth1_api/src/eth1_api/http_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,12 +496,12 @@ impl Eth1Api {

match self.peek_next_endpoint().await {
Some(next_endpoint) => warn!(
"Eth1 RPC endpoint {url} returned an error: {error}; \
"Eth1 RPC endpoint {url} returned an error: {error:?}; \
switching to {}",
next_endpoint.url(),
),
None => warn!(
"last available Eth1 RPC endpoint {url} returned an error: {error}",
"last available Eth1 RPC endpoint {url} returned an error: {error:?}",
),
}

Expand Down

0 comments on commit 2169fdb

Please sign in to comment.