Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: get-peer supports partial node id lookup #3379

Merged
merged 2 commits into from
Sep 22, 2021

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Sep 22, 2021

Description

Add support for short/partial node ID hex strings to get-peer

Motivation and Context

Allow users to use the first part of a node id string to get a peer's details. This is sometimes useful
when only part of the node ID has been logged.

e.g

$ get-peer ab
Emoji ID: 馃憿馃彟馃尀馃尭馃尰馃懝馃挵馃樋馃寢馃槈馃幑馃槇馃崍馃憫馃挵馃挘馃幙馃崝馃幒馃拪馃帓馃悓馃攱馃崒馃彔馃拪馃憻馃幘馃寑馃憛馃敟馃崌馃崻
Public Key: a468080f11a6c0eb04e45ae31995c0b960245baf446ed01d66afa15f0094d518
NodeId: ab515e97ddb1a4290ac43c0901
Addresses:
- /onion3/46ipqgoqugqzztvgyr6et72vctlm2kpdjotif4ousdyz4h2tkywmkjad:18141
User agent:
Features: NONE | COMMUNICATION_CLIENT
Supported protocols:  

How Has This Been Tested?

Manually

Add support for short/partial node ID hex strings to `get-peer`
@aviator-app aviator-app bot merged commit e5af5f7 into tari-project:development Sep 22, 2021
@sdbondi sdbondi deleted the basenode-get-peer branch September 23, 2021 11:00
@sdbondi sdbondi restored the basenode-get-peer branch February 3, 2022 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants