Skip to content

Commit

Permalink
rename ledger tool
Browse files Browse the repository at this point in the history
  • Loading branch information
yihau committed Feb 19, 2024
1 parent aa82b2d commit 910d286
Show file tree
Hide file tree
Showing 11 changed files with 70 additions and 70 deletions.
104 changes: 52 additions & 52 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 docs/src/implemented-proposals/rpc-transaction-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ the results of BigTable queries more complicated but is not a significant issue.
## Data Population

The ongoing population of instance data will occur on an epoch cadence through
the use of a new `solana-ledger-tool` command that will convert rocksdb data for
the use of a new `agave-ledger-tool` command that will convert rocksdb data for
a given slot range into the instance schema.

The same process will be run once, manually, to backfill the existing ledger
Expand Down
10 changes: 5 additions & 5 deletions docs/src/operations/guides/restart-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pagination_label: "Validator Guides: Restart a Cluster"
In Solana 1.14 or greater, run the following command to output the latest
optimistically confirmed slot your validator observed:
```bash
solana-ledger-tool -l ledger latest-optimistic-slots
agave-ledger-tool -l ledger latest-optimistic-slots
```

In Solana 1.13 or less, the latest optimistically confirmed can be found by looking for the more recent occurrence of
Expand All @@ -34,11 +34,11 @@ instead.
### Step 4. Create a new snapshot for slot `SLOT_X` with a hard fork at slot `SLOT_X`

```bash
$ solana-ledger-tool -l <LEDGER_PATH> --snapshot-archive-path <SNAPSHOTS_PATH> --incremental-snapshot-archive-path <INCREMENTAL_SNAPSHOTS_PATH> create-snapshot SLOT_X <SNAPSHOTS_PATH> --hard-fork SLOT_X
$ agave-ledger-tool -l <LEDGER_PATH> --snapshot-archive-path <SNAPSHOTS_PATH> --incremental-snapshot-archive-path <INCREMENTAL_SNAPSHOTS_PATH> create-snapshot SLOT_X <SNAPSHOTS_PATH> --hard-fork SLOT_X
```

The snapshots directory should now contain the new snapshot.
`solana-ledger-tool create-snapshot` will also output the new shred version, and bank hash value,
`agave-ledger-tool create-snapshot` will also output the new shred version, and bank hash value,
call this NEW_SHRED_VERSION and NEW_BANK_HASH respectively.

Adjust your validator's arguments:
Expand Down Expand Up @@ -95,7 +95,7 @@ Post something like the following to #announcements (adjusting the text as appro
> ... # <-- your other --identity/--vote-account/etc arguments
> ```
>
> You can check for which slots your ledger has with: `solana-ledger-tool -l path/to/ledger bounds`
> You can check for which slots your ledger has with: `agave-ledger-tool -l path/to/ledger bounds`
>
> 3. Wait until 80% of the stake comes online
>
Expand All @@ -122,7 +122,7 @@ and create a new snapshot with additional `--destake-vote-account <PUBKEY>`
arguments for each of the non-responsive validator's vote account address
```bash
$ solana-ledger-tool -l ledger create-snapshot SLOT_X ledger --hard-fork SLOT_X \
$ agave-ledger-tool -l ledger create-snapshot SLOT_X ledger --hard-fork SLOT_X \
--destake-vote-account <VOTE_ACCOUNT_1> \
--destake-vote-account <VOTE_ACCOUNT_2> \
.
Expand Down
4 changes: 2 additions & 2 deletions ledger-tool/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "solana-ledger-tool"
name = "agave-ledger-tool"
description = "Blockchain, Rebuilt for Scale"
documentation = "https://docs.rs/solana-ledger-tool"
documentation = "https://docs.rs/agave-ledger-tool"
version = { workspace = true }
authors = { workspace = true }
repository = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion ledger-tool/src/blockstore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ pub fn blockstore_subcommands<'a, 'b>(hidden: bool) -> Vec<App<'a, 'b>> {
and timestamps.",
)
// This command is important in cluster restart scenarios, so do not hide it ever
// such that the subcommand will be visible as the top level of solana-ledger-tool
// such that the subcommand will be visible as the top level of agave-ledger-tool
.arg(
Arg::with_name("num_slots")
.long("num-slots")
Expand Down
2 changes: 1 addition & 1 deletion ledger-tool/src/ledger_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ pub fn load_and_process_ledger(
// Attempt to open the Blockstore in Primary access; if successful, no other process
// was holding Primary so allow things to proceed with custom accounts path. Release
// the Primary access instead of holding it to give priority to solana-validator over
// solana-ledger-tool should solana-validator start before we've finished.
// agave-ledger-tool should solana-validator start before we've finished.
info!(
"Checking if another process currently holding Primary access to {:?}",
blockstore.ledger_path()
Expand Down
2 changes: 1 addition & 1 deletion local-cluster/tests/local_cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2321,7 +2321,7 @@ fn test_hard_fork_with_gap_in_roots() {
);

// create hard-forked snapshot only for validator a, emulating the manual cluster restart
// procedure with `solana-ledger-tool create-snapshot`
// procedure with `agave-ledger-tool create-snapshot`
let genesis_slot = 0;
{
let blockstore_a = Blockstore::open(&val_a_ledger_path).unwrap();
Expand Down
6 changes: 3 additions & 3 deletions net/remote/remote-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,13 @@ EOF

if [[ -n "$maybeWarpSlot" ]]; then
# shellcheck disable=SC2086 # Do not want to quote $maybeWarSlot
solana-ledger-tool -l config/bootstrap-validator create-snapshot 0 config/bootstrap-validator $maybeWarpSlot
agave-ledger-tool -l config/bootstrap-validator create-snapshot 0 config/bootstrap-validator $maybeWarpSlot
fi

solana-ledger-tool -l config/bootstrap-validator shred-version --max-genesis-archive-unpacked-size 1073741824 | tee config/shred-version
agave-ledger-tool -l config/bootstrap-validator shred-version --max-genesis-archive-unpacked-size 1073741824 | tee config/shred-version

if [[ -n "$maybeWaitForSupermajority" ]]; then
bankHash=$(solana-ledger-tool -l config/bootstrap-validator bank-hash --halt-at-slot 0)
bankHash=$(agave-ledger-tool -l config/bootstrap-validator bank-hash --halt-at-slot 0)
extraNodeArgs="$extraNodeArgs --expected-bank-hash $bankHash"
echo "$bankHash" > config/bank-hash
fi
Expand Down
4 changes: 2 additions & 2 deletions rbpf-cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
fn main() {
println!(
r##"rbpf-cli is replaced by solana-ledger-tool program run subcommand.
Please, use 'solana-ledger-tool program run --help' for more information."##
r##"rbpf-cli is replaced by agave-ledger-tool program run subcommand.
Please, use 'agave-ledger-tool program run --help' for more information."##
);
}
2 changes: 1 addition & 1 deletion scripts/cargo-install-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ else
solana-gossip
solana-install
solana-keygen
solana-ledger-tool
agave-ledger-tool
solana-log-analyzer
solana-net-shaper
solana-validator
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-dev-context-only-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ source ci/rust-version.sh nightly
declare tainted_packages=(
solana-accounts-bench
solana-banking-bench
solana-ledger-tool
agave-ledger-tool
)

# convert to comma separeted (ref: https://stackoverflow.com/a/53839433)
Expand Down

0 comments on commit 910d286

Please sign in to comment.