Skip to content

Help understanding how the relayer gets new messages on receiver.go #809

Answered by manishbista28
pedro-lino asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Whenever someone initiates a token transfer, the BTS contract on chainA will hold the funds to be transferred (until it gets an acknowledgment from chainB that the transfr was successful) . The Message event is generated first on ChainA, which includes the transfer Request. This is picked up and forwarded by relayer running in one direction (chainA-> chainB).

This message is received, processed and another Message event is generated by ChainB. This acknowledgement Message is picked up and forwarded by relayer running in the opposite direction (chainB-> chainA). Finally the chainA receives the acknowledgement and unlocks the locked fund. So, for successful transfer there are a pair of Me…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pedro-lino
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants