Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Following a proposal event, which relayer from the group of multiple relayers submits the proposal? #292

Answered by waymobetta
waymobetta asked this question in Q&A
Discussion options

You must be logged in to vote

The relayers all execute proposals (votes) unless certain conditions are not met that prevent them from voting, but the relayerThreshold is considered during this step, as only relayerThreshold (number; ie, 2) relayers is required for the vote to pass.

So, if the relayerThreshold was set to 2 and there were 3 relayers, 2 of the 3 relayers would need to successfully vote in favor in order for the bridge to process the transfer.

All relayers will be paying gas fees for transactions, though the transactions will fail if another relayer's transaction was mined first, which is started via a non-blocking process to watch for certain events, shown here within the scope of a goroutine.

Replies: 1 comment

Comment options

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