Skip to content

Commit

Permalink
apply code review suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: teor <teor@riseup.net>
  • Loading branch information
oxarbitrage and teor2345 committed Nov 15, 2023
1 parent 072f11a commit 95ed525
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion zebra-scan/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use indexmap::IndexMap;
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Deserialize, Serialize)]
#[derive(Clone, Debug, Eq, PartialEq, Deserialize, Serialize)]
#[serde(deny_unknown_fields, default)]
/// Configuration for scanning.
pub struct Config {
Expand Down
8 changes: 5 additions & 3 deletions zebrad/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ getblocktemplate-rpcs = [
"zebra-chain/getblocktemplate-rpcs",
]

# Experimental zebra-scan indexing
zebra-scan = []
# Experimental shielded blockchain scanning
shielded-scan = ["zebra-scan"]

# Experimental elasticsearch indexing
elasticsearch = [
Expand Down Expand Up @@ -154,7 +154,9 @@ zebra-network = { path = "../zebra-network", version = "1.0.0-beta.31" }
zebra-node-services = { path = "../zebra-node-services", version = "1.0.0-beta.31" }
zebra-rpc = { path = "../zebra-rpc", version = "1.0.0-beta.31" }
zebra-state = { path = "../zebra-state", version = "1.0.0-beta.31" }
zebra-scan = { path = "../zebra-scan", version = "0.1.0-alpha.0" }

# Experimental shielded-scan feature
zebra-scan = { path = "../zebra-scan", version = "0.1.0-alpha.0", optional = true }

# Required for crates.io publishing, but it's only used in tests
zebra-utils = { path = "../zebra-utils", version = "1.0.0-beta.31", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion zebrad/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ pub struct ZebradConfig {

#[cfg(feature = "zebra-scan")]
/// Scanner configuration
pub scan: zebra_scan::config::Config,
pub shielded_scan: zebra_scan::config::Config,
}

0 comments on commit 95ed525

Please sign in to comment.