Following a proposal event, which relayer from the group of multiple relayers submits the proposal? #292
-
Following a proposal event on-chain, which relayer from the group of multiple relayers (ie, 3 relayers) is the one who actually submits the proposal transaction? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The relayers all execute proposals (votes) unless certain conditions are not met that prevent them from voting, but the So, if the 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. |
Beta Was this translation helpful? Give feedback.
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 onlyrelayerThreshold
(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.