Set counterparty address for relayer fee before starting channel worker #1964
Closed
5 tasks
Labels
O: ics29-fee
Objective: Fee middleware support
Milestone
Summary
When starting a channel worker, the relayer needs to first check whether fee is enabled on the channel, and whether the relayer have already set a counterparty address on both chains. If not, the relayer needs to first register its counterparty addresses before starting to relay, so that it can be paid the receive fee.
The relayer also needs to check if the existing registered counterparty address is different from the wallet in its config, then the counterparty address needs to be updated.
Acceptance Criteria
When start relaying the first time on a channel with fee enabled, the relayer should be paid receive fee after relaying incentivized packets.
For Admin Use
The text was updated successfully, but these errors were encountered: