Skip to content

Commit

Permalink
Add a command to apply state parts. From disk or S3.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikurt committed Jan 30, 2023
1 parent 948063d commit 85b4fae
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 357 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ rand_xorshift = "0.3"
rayon = "1.5"
redis = "0.21.5"
reed-solomon-erasure = "4"
regex = "1.7.1"
regex = "1.7.0"
reqwest = { version = "0.11.0", features = ["blocking"] }
ripemd = "0.1.1"
rlimit = "0.7"
Expand Down
8 changes: 6 additions & 2 deletions tools/state-viewer/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@ impl ApplyStatePartsCmd {
home_dir,
near_config,
store,
state_parts::Location::new(self.root_dir, (self.s3_bucket, self.s3_region)),
self.root_dir,
self.s3_bucket,
self.s3_region,
);
}
}
Expand Down Expand Up @@ -427,7 +429,9 @@ impl DumpStatePartsCmd {
home_dir,
near_config,
store,
state_parts::Location::new(self.root_dir, (self.s3_bucket, self.s3_region)),
self.root_dir,
self.s3_bucket,
self.s3_region,
);
}
}
Expand Down
242 changes: 0 additions & 242 deletions tools/state-viewer/src/dump_state_parts.rs

This file was deleted.

3 changes: 1 addition & 2 deletions tools/state-viewer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ mod apply_chain_range;
mod apply_chunk;
pub mod cli;
mod commands;
mod contract_accounts;
mod dump_state_parts;
mod epoch_info;
mod rocksdb_stats;
mod state_dump;
mod state_parts;
mod tx_dump;

pub use cli::StateViewerSubCommand;
Loading

0 comments on commit 85b4fae

Please sign in to comment.