Skip to content

Metadata isn't updated when node's capabilities changes #1025

@andrevmatos

Description

@andrevmatos

Problem Definition

On the LC, we have some capabilities which can be updated at runtime. e.g.: by default, Receive is set to 1 if there's enough UDC balance to pay for one monitoring request, and to 0 if e.g. a udc withdraw process is initiated which makes it drop below the minimum required UDC deposit.

When these capabilities changes, we PUT the new avatar_url to the respective endpoint in our matrix server, AND after that also PUT a new status with the same online presence but a changed status_msg in order to force a m.presence update to be sent for us. Not sure if any/all of these cases aren't properly propagated by the matrix hook, or if the PFS is not reacting to these events, but it seems the PFS does not update our metadata when capabilities updates are posted, which is breaking functionality which depends on these staying more or less up to date.

Workaround for now in the user side is to disconnect, stay offline for ~30s (to be seen as offline by matrix), then coming back online and only then our capability is updated (since we came back online with the new capability).
One bug in our repo caused by this issue: raiden-network/light-client#2831

Actual Outcome

Capability isn't updated without going offline and then coming back online

Expected Outcome

PFS can pick up avatar_url updates (and/or status updates) and update our capabilities accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug 🐛Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions