-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Add peer-pub-key
command to stacks-inspect
#3633
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #3633 +/- ##
============================================
- Coverage 84.93% 30.09% -54.84%
============================================
Files 298 298
Lines 276611 276633 +22
============================================
- Hits 234941 83260 -151681
- Misses 41670 193373 +151703
... and 263 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm other than build issue
@@ -3808,25 +3807,6 @@ impl PeerThread { | |||
} | |||
|
|||
impl StacksNode { | |||
/// Create a StacksPrivateKey from a given seed buffer | |||
pub fn make_node_private_key_from_seed(seed: &[u8]) -> StacksPrivateKey { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's a build failure related to this function - it's used in more places
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
Specifying
bootstrap_node
entries in a stacks-node config file requires the peer's public key. Figuring out a peer's public key from itslocal_peer_seed
isn't always trivial (you can get it from the logs during node bootup, but you don't necessarily want to have to deploy a node to figure out what its public key will be).But, computing the public key from a peer seed value is pretty easy from the library, so I added a
peer-pub-key
command tostacks-inspect
which can help in this case.