Skip to content

Commit

Permalink
Create defrag-style TUI for wallet syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
str4d committed Apr 20, 2024
1 parent 94e1337 commit 1dcd4b2
Show file tree
Hide file tree
Showing 4 changed files with 436 additions and 0 deletions.
100 changes: 100 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ zcash_protocol = "0.1"
crossterm = { version = "0.27", optional = true, features = ["event-stream"] }
ratatui = { version = "0.26", optional = true }
tokio-util = { version = "0.7", optional = true }
tui-logger = { version = "0.11", optional = true, features = ["tracing-support"] }

[features]
default = []
tui = [
"dep:crossterm",
"dep:ratatui",
"dep:tokio-util",
"dep:tui-logger",
]
3 changes: 3 additions & 0 deletions src/commands/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ use crate::{
remote::connect_to_lightwalletd,
};

#[cfg(feature = "tui")]
mod defrag;

const BATCH_SIZE: u32 = 10_000;

// Options accepted for the `sync` command
Expand Down
Loading

0 comments on commit 1dcd4b2

Please sign in to comment.