diff --git a/Cargo.lock b/Cargo.lock index 5e1d3f7..1142480 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3839,7 +3839,7 @@ checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec" [[package]] name = "plain_bitassets" -version = "0.9.0" +version = "0.9.1" dependencies = [ "addr", "anyhow", @@ -3888,7 +3888,7 @@ dependencies = [ [[package]] name = "plain_bitassets_app" -version = "0.9.0" +version = "0.9.1" dependencies = [ "anyhow", "async_zmq", @@ -3932,7 +3932,7 @@ dependencies = [ [[package]] name = "plain_bitassets_app_cli" -version = "0.9.0" +version = "0.9.1" dependencies = [ "anyhow", "bip300301", @@ -3947,7 +3947,7 @@ dependencies = [ [[package]] name = "plain_bitassets_app_rpc_api" -version = "0.9.0" +version = "0.9.1" dependencies = [ "bip300301", "fraction", diff --git a/Cargo.toml b/Cargo.toml index 2a89eb0..7a63cf4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ members = [ [workspace.package] authors = [ "Ash Manning " ] edition = "2021" -version = "0.9.0" +version = "0.9.1" [workspace.dependencies.bip300301] git = "https://github.com/Ash-L2L/bip300301.git" diff --git a/app/cli.rs b/app/cli.rs index 2446a46..9388364 100644 --- a/app/cli.rs +++ b/app/cli.rs @@ -36,7 +36,8 @@ const DEFAULT_RPC_ADDR: SocketAddr = ipv4_socket_addr([127, 0, 0, 1], 6000 + THIS_SIDECHAIN as u16); #[cfg(all(not(target_os = "windows"), feature = "zmq"))] -const DEFAULT_ZMQ_ADDR: SocketAddr = ipv4_socket_addr([127, 0, 0, 1], 28332); +const DEFAULT_ZMQ_ADDR: SocketAddr = + ipv4_socket_addr([127, 0, 0, 1], 28000 + THIS_SIDECHAIN as u16); /// Implement arg manually so that there is only a default if we can resolve /// the default data dir diff --git a/app/rpc_server.rs b/app/rpc_server.rs index 77157c0..b9d9a1a 100644 --- a/app/rpc_server.rs +++ b/app/rpc_server.rs @@ -31,15 +31,20 @@ fn custom_err(err_msg: impl Into) -> ErrorObject<'static> { } fn convert_app_err(err: app::Error) -> ErrorObject<'static> { - tracing::error!("{err}"); + let err = anyhow::anyhow!(err); + tracing::error!("{err:#}"); custom_err(err.to_string()) } fn convert_node_err(err: node::Error) -> ErrorObject<'static> { + let err = anyhow::anyhow!(err); + tracing::error!("{err:#}"); custom_err(err.to_string()) } fn convert_wallet_err(err: wallet::Error) -> ErrorObject<'static> { + let err = anyhow::anyhow!(err); + tracing::error!("{err:#}"); custom_err(err.to_string()) }