Skip to content

In /api/v3/aliases response, peerIds and aliases swiched places #6581

@mjadach-iv

Description

@mjadach-iv

Expected Behavior

/api/v3/aliases returning object with keys as aliases and peerIds as values

{
    "10": "12D3KooWL16nW1Z2dLvyZWzr9ZZwoLTeuSfaKSeX2BjucHwSoEwJ",
    "channel": "12D3KooWRypxhRS54U1HuymdRm1AwkNMsPi8AqXcFDCcA9caUJPH"
}

Current Behavior

/api/v3/aliases returning object with keys as peerIds and aliases as values

{
    "12D3KooWL16nW1Z2dLvyZWzr9ZZwoLTeuSfaKSeX2BjucHwSoEwJ": "10",
    "12D3KooWRypxhRS54U1HuymdRm1AwkNMsPi8AqXcFDCcA9caUJPH": "channel"
}

Were you able to reproduce the bug using the above steps consistently each time? YES/NO

Context (Environment)

On 2.1.4 all worked fine, 2.1.5 has wrong respose

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions