Skip to content

Commit 030f22f

Browse files
committed
Cleanup warnings, add zcash_protocol dep, extract db bootstrap into submodule
- Remove dead Config fields (smtp_host, smtp_user) and unused SessionRequest.expires_at - Switch scanner decrypt to non-deprecated zcash_protocol::consensus::NetworkType - Add direct zcash_protocol = "0.7" dependency (matches zcash_address 0.10.1 graph) - Extract schema migration tracking into db/schema_tracking.rs - Move inline bootstrap migration into db/bootstrap.rs, reducing db.rs to 68 lines
1 parent ea9559d commit 030f22f

8 files changed

Lines changed: 1716 additions & 1673 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ zcash_primitives = { version = "0.25", default-features = false }
3333
zcash_note_encryption = "0.4"
3434
orchard = { version = "0.11", default-features = false, features = ["std"] }
3535
zcash_address = "0.10"
36+
zcash_protocol = "0.7"
3637

3738
# Crypto / hashing
3839
sha2 = "0.10"

src/config.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ pub struct Config {
1919
pub allowed_origins: Vec<String>,
2020
pub cookie_domain: Option<String>,
2121
pub frontend_url: Option<String>,
22-
pub smtp_host: Option<String>,
23-
pub smtp_user: Option<String>,
2422
pub smtp_pass: Option<String>,
2523
pub smtp_from: Option<String>,
2624
pub fee_ufvk: Option<String>,
@@ -69,8 +67,6 @@ impl Config {
6967
.collect(),
7068
cookie_domain: env::var("COOKIE_DOMAIN").ok().filter(|s| !s.is_empty()),
7169
frontend_url: env::var("FRONTEND_URL").ok().filter(|s| !s.is_empty()),
72-
smtp_host: env::var("SMTP_HOST").ok().filter(|s| !s.is_empty()),
73-
smtp_user: env::var("SMTP_USER").ok().filter(|s| !s.is_empty()),
7470
smtp_pass: env::var("SMTP_PASS").ok().filter(|s| !s.is_empty()),
7571
smtp_from: env::var("SMTP_FROM").ok().filter(|s| !s.is_empty()),
7672
fee_ufvk: env::var("FEE_UFVK").ok().filter(|s| !s.is_empty()),

0 commit comments

Comments
 (0)