diff --git a/book/src/user/tracing.md b/book/src/user/tracing.md index d1b984f05df..cbacddb9ad4 100644 --- a/book/src/user/tracing.md +++ b/book/src/user/tracing.md @@ -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/ diff --git a/zebra-consensus/src/transaction.rs b/zebra-consensus/src/transaction.rs index d9184035aa5..661b0be14d2 100644 --- a/zebra-consensus/src/transaction.rs +++ b/zebra-consensus/src/transaction.rs @@ -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, )?; diff --git a/zebra-rpc/src/server.rs b/zebra-rpc/src/server.rs index c787071d74d..87c565f4a3e 100644 --- a/zebra-rpc/src/server.rs +++ b/zebra-rpc/src/server.rs @@ -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? diff --git a/zebra-script/src/lib.rs b/zebra-script/src/lib.rs index 3747b84c46e..096a36be9e8 100644 --- a/zebra-script/src/lib.rs +++ b/zebra-script/src/lib.rs @@ -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"); diff --git a/zebrad/src/commands/start.rs b/zebrad/src/commands/start.rs index 035b9a20100..5d346e42c77 100644 --- a/zebrad/src/commands/start.rs +++ b/zebrad/src/commands/start.rs @@ -262,7 +262,7 @@ impl StartCmd { ); rpc_task_handle.await.unwrap() } else { - warn!("configure an listen_addr to start the RPC server"); + info!("configure a listen_addr to start the RPC server"); ( tokio::spawn(std::future::pending().in_current_span()), tokio::spawn(std::future::pending().in_current_span()),