Skip to content

Commit

Permalink
dump validator peer id in concise mode
Browse files Browse the repository at this point in the history
  • Loading branch information
longbowlu committed Feb 2, 2023
1 parent b3ba6df commit c8657af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions crates/sui-tool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ publish = false
edition = "2021"

[dependencies]
anemo.workspace = true
anyhow = { version = "1.0.64", features = ["backtrace"] }
tokio = { workspace = true, features = ["full"] }
tracing = "0.1.36"
Expand Down
5 changes: 3 additions & 2 deletions crates/sui-tool/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,12 @@ impl ToolCommand {
} else {
for (i, val_info) in genesis.validator_set().iter().enumerate() {
println!(
"#{:<2} {:<20} {:?<66} {:?}",
"#{:<2} {:<20} {:?<66} {:?} {}",
i,
val_info.name(),
val_info.protocol_key(),
val_info.network_address()
val_info.network_address(),
anemo::PeerId(val_info.network_key().0.to_bytes()),
)
}
}
Expand Down

0 comments on commit c8657af

Please sign in to comment.