Skip to content

Gossip public Torii URLs to help with automatic discovery #5367

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

Open
0x009922 opened this issue Mar 17, 2025 · 0 comments
Open

Gossip public Torii URLs to help with automatic discovery #5367

0x009922 opened this issue Mar 17, 2025 · 0 comments
Assignees
Labels
api-changes Changes in the API for client libraries config-changes Changes in configuration and start up of the Iroha Enhancement New feature or request I2-Explorer

Comments

@0x009922
Copy link
Contributor

Origin: #5348 (comment)

The issue is that for Explorer to be useful (specifically, to display telemetry page), it needs to gather info not only from a single peer in the network, but from all of them (or at least many of them). Currently the only way to do so is to give Explorer all peers Torii URLs explicitly. This doesn't scale and doesn't handle dynamic peers.

There is network.public_address, but it is used for P2P and has nothing to do with the public URL on which the peer's Torii is available. And it isn't just socket address (ip/host + port). In real world, it absolutely can have a path component as well (e.g. http://fujiwara.sora.org/v5/).

My proposal is to:

  • add torii.public_url config parameter (optional)
  • gossip this info among peers, in a form of just FYI
  • change GET /peers, return peer ids + their public URLs.
@0x009922 0x009922 added api-changes Changes in the API for client libraries config-changes Changes in configuration and start up of the Iroha Enhancement New feature or request I2-Explorer labels Mar 17, 2025
@0x009922 0x009922 self-assigned this Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-changes Changes in the API for client libraries config-changes Changes in configuration and start up of the Iroha Enhancement New feature or request I2-Explorer
Projects
None yet
Development

No branches or pull requests

1 participant