hoprnet / hopr-admin

HOPR Admin app which can be used to manage a HOPRd node via its API
https://hopr-admin.vercel.app
2 stars 7 forks source link

Outgoing payment channel remains in Admin UI after successful closure without refreshing Admin UI #623

Open Jaguaras opened 3 weeks ago

Jaguaras commented 3 weeks ago

Expected behaviour

When initiating closing outgoing payment channel by the strategy it will finalise automatically. After automatic closure it should remove outgoing channel from a list.

Current behaviour

When initiating closing outgoing payment channel it automatically finalise to close payment channel, but while UI is not being refreshed, payment channel is not being removed from a list. In this way you are able to click on "close outgoing channel" again and the error will popup:

Closing of outgoing channel 0x702d82cf0b32c8d994b5482cae91d461fbd6dbc88e09cf82f1deec6520ccaa6a failed.
UNKNOWN_FAILURE.
timeout waiting for action confirmation

Additionally 2nd tx is being executed with no luck, example: https://gnosisscan.io/tx/0x8486054f762f9e9120e61212bb1351cb78f55f4f88ccf007888b75ab7f22dc42 (Because channel was closed already)

mjadach-iv commented 2 weeks ago

It gets updated every 60s. We have no 'push' way to get this data, when closing with automatic closure, so the only way is that we could change the update to be done every 30s. I would not recommend it

It does work: image