diff --git a/bindings/c/Cargo.toml b/bindings/c/Cargo.toml index fbf6b1d0..79dad158 100644 --- a/bindings/c/Cargo.toml +++ b/bindings/c/Cargo.toml @@ -7,17 +7,17 @@ authors = ["Grandine "] 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 } diff --git a/bindings/c/src/lib.rs b/bindings/c/src/lib.rs index 94ed4bdc..a7565788 100644 --- a/bindings/c/src/lib.rs +++ b/bindings/c/src/lib.rs @@ -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 diff --git a/eth1_api/src/eth1_api/http_api.rs b/eth1_api/src/eth1_api/http_api.rs index b7e77db5..318bf397 100644 --- a/eth1_api/src/eth1_api/http_api.rs +++ b/eth1_api/src/eth1_api/http_api.rs @@ -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:?}", ), }