Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC 12 Implementation: Reduce heartbeat probability to 6.25% #3759

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

lukasz-zimnoch
Copy link
Member

Refs: keep-network/tbtc-v2#737

The currently used probability of 12.5% means that a completely idle wallet will perform a heartbeat every 4 coordination windows on average (or 8 in the worst case) so, every 3600 blocks (~12 hours assuming a coordination every 900 blocks and 12 seconds per Ethereum block).

User acceptance tests executed on our Sepolia testnet (10 live wallets) show that such a value often leads to simultaneous heartbeats for several wallets at the same time. This, in turn, can cause increased resource consumption for individual nodes and harm some signing processes. Although nothing bad happens if those are just heartbeats, this may be problematic for redemptions and deposit sweeps. To lower the risk of signing failures, we are lowering the heartbeat probability to 6.25%.

The probability of 6.25% means that a completely idle wallet will perform a heartbeat every 8 coordination windows on average (or 16 in the worst case) so, every 7200 blocks (~24 hours assuming a coordination every 900 blocks and 12 seconds per Ethereum block).

The currently used probability of 12.5% means that a completely idle wallet
will perform a heartbeat every 4 coordination windows on average
(or 8 in the worst case) so, every 3600 blocks (~12 hours assuming a
coordination every 900 blocks and 12 seconds per Ethereum block).

User acceptance tests executed on our Sepolia testnet (10 live wallets) shown
that such a value often leads to simultaneous heartbeats for several wallets
at the same time. This, in turn, can cause increased resource comsumption
for individual nodes and harm some signing processes. Although nothing bad
happens if those are just heartbeats, this may be problematic for redemptions
and deposit sweeps. In order to lower the risk of signing failures, we are
lowering the heartbeat probability to 6.25%.

The probability of 6.25% means that a completely idle wallet
will perform a heartbeat every 8 coordination windows on average
(or 16 in the worst case) so, every 7200 blocks (~24 hours assuming a
coordination every 900 blocks and 12 seconds per Ethereum block).
@lukasz-zimnoch lukasz-zimnoch changed the title Reduce heartbeat probability to 6.25% RFC 12 Implementation: Reduce heartbeat probability to 6.25% Dec 19, 2023
@lukasz-zimnoch lukasz-zimnoch self-assigned this Dec 19, 2023
@michalinacienciala michalinacienciala merged commit 7004553 into main Dec 19, 2023
29 checks passed
@michalinacienciala michalinacienciala deleted the reduce-hb-probability branch December 19, 2023 14:51
@lukasz-zimnoch lukasz-zimnoch added this to the v2.0.0 milestone Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants