Skip to content

Write IBC ack error on failures #4721

@sug0

Description

@sug0

Problem statement

Right now, if an IBC transaction fails on Namada, especially due to VP errors, we do not emit any acknowledgement events to inform the counterparty. This leads to the funds only being recoverable on the source chain by waiting for the transfer to timeout, which in some cases (e.g. with Packet Forward Middleware retries) can take 10 minutes.

To considerably improve the UX, transfers (ideally) should fail immediately with an ack error being written to storage, accompanied by an event.

Proposed solutions

Define transaction epilogue

A generic solution could involve a tx epilogue, where additional logic can be executed at the end of VP execution.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions