Add ability to prune ledger (#5128)

* Add utility to prune the ledger

* Add tests

* Fix clippy

* Fix off by one

* Rework to force delete every column

* Minor fixup
This commit is contained in:
Sagar Dhawan
2019-07-17 14:42:29 -07:00
committed by GitHub
parent 027ebb6670
commit 6ad9dc18d8
5 changed files with 179 additions and 2 deletions

1
Cargo.lock generated
View File

@@ -2684,6 +2684,7 @@ name = "solana-ledger-tool"
version = "0.17.0"
dependencies = [
"assert_cmd 0.11.1 (registry+https://github.com/rust-lang/crates.io-index)",
"bincode 1.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
"clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.94 (registry+https://github.com/rust-lang/crates.io-index)",
"serde_derive 1.0.94 (registry+https://github.com/rust-lang/crates.io-index)",