Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Minor cleanups #9198

Merged
merged 6 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions book/src/user/tracing.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ and the [`flamegraph`][flamegraph] runtime config option.

Compile Zebra with `--features sentry` to monitor it using [Sentry][sentry] in production.

[tracing_section]: https://docs.rs/zebrad/latest/zebrad/components/tracing/struct.Config.html
[filter]: https://docs.rs/zebrad/latest/zebrad/components/tracing/struct.Config.html#structfield.filter
[flamegraph]: https://docs.rs/zebrad/latest/zebrad/components/tracing/struct.Config.html#structfield.flamegraph
[tracing_section]: https://docs.rs/zebrad/latest/zebrad/components/tracing/struct.InnerConfig.html
[filter]: https://docs.rs/zebrad/latest/zebrad/components/tracing/struct.InnerConfig.html#structfield.filter
[flamegraph]: https://docs.rs/zebrad/latest/zebrad/components/tracing/struct.InnerConfig.html#structfield.flamegraph
[flamegraphs]: http://www.brendangregg.com/flamegraphs.html
[systemd_journald]: https://www.freedesktop.org/software/systemd/man/systemd-journald.service.html
[use_journald]: https://docs.rs/zebrad/latest/zebrad/components/tracing/struct.Config.html#structfield.use_journald
[use_journald]: https://docs.rs/zebrad/latest/zebrad/components/tracing/struct.InnerConfig.html#structfield.use_journald
[sentry]: https://sentry.io/welcome/
4 changes: 2 additions & 2 deletions zebra-consensus/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,9 @@ where
miner_fee,
legacy_sigop_count,
},
Request::Mempool { transaction: ref tx, .. } => {
Request::Mempool { transaction: tx, .. } => {
let transaction = VerifiedUnminedTx::new(
tx.clone(),
tx,
miner_fee.expect("fee should have been checked earlier"),
legacy_sigop_count,
)?;
Expand Down
4 changes: 4 additions & 0 deletions zebra-rpc/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ impl RpcServer {
///
/// Returns [`JoinHandle`]s for the RPC server and `sendrawtransaction` queue tasks,
/// and a [`RpcServer`] handle, which can be used to shut down the RPC server task.
///
/// # Panics
///
/// - If [`Config::listen_addr`] is `None`.
//
// TODO:
// - put some of the configs or services in their own struct?
Expand Down
4 changes: 4 additions & 0 deletions zebra-script/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,10 @@ mod tests {

let input_index = 0;

verifier
.is_valid(NetworkUpgrade::Blossom, input_index + 1)
.expect_err("verification should fail");

verifier
.is_valid(NetworkUpgrade::Blossom, input_index + 1)
.expect_err("verification should fail");
Expand Down
2 changes: 1 addition & 1 deletion zebrad/src/commands/start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ impl StartCmd {
);
rpc_task_handle.await.unwrap()
} else {
warn!("configure an listen_addr to start the RPC server");
info!("configure an listen_addr to start the RPC server");
upbqdn marked this conversation as resolved.
Show resolved Hide resolved
(
tokio::spawn(std::future::pending().in_current_span()),
tokio::spawn(std::future::pending().in_current_span()),
Expand Down
Loading