Skip to content

Feature Request: Allow Destination nodes for un-specified aliases #227

Closed
@carlaKC

Description

@carlaKC

Describe desired feature

Right now, we allow nodes to specify a destination pubkey in their activity that is not one of the nodes defined in the nodes the simulator is configured with. This makes sense, because on public signets you might want to spray traffic out to nodes you don't control.

However, we don't currently allow specifying a destination alias for nodes that are not defined in our nodes. This makes some sense, because an alias isn't a unique identifier, and they're allowed as a convenience for people testing small networks.

Use case for feature

Aliases are more readable than pubkeys, so it could make sense to allow them in the same way as pubkeys. However, they're not unique so we'll need to treat them with some care.

I'd suggest:

  • Allow aliases and look them up in our graph to find the corresponding pubkey
  • If the alias is unique in the network, allow the simulation to run with the alias
  • If the alias is not unique in the network, error our and print all the duplicate pubkeys so that the end user can pick the one that they intended to use

Would you like to contribute code for this feature?

No, this isn't very high priority for my use case - opening the issue for visibility / somebody else to pick up.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions