You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For every active delegation, the unbonding watcher creates a new goroutine that's intended to watch for any new transactions whose input matches the output of the staking tx (ref). A large amount of go-routines can cause performance degradation or slowdowns, or maybe even cause the vigilante to crash with an OOM.
A proper fix is to subscribe to each new BTC block rather than each staking tx, such that upon each new BTC block, unbonding watcher sees whether it includes an unbonding tx for a BTC delegation. If yes then unbonding watcher reports it to Babylon.
The text was updated successfully, but these errors were encountered:
For every active delegation, the unbonding watcher creates a new goroutine that's intended to watch for any new transactions whose input matches the output of the staking tx (ref). A large amount of go-routines can cause performance degradation or slowdowns, or maybe even cause the vigilante to crash with an OOM.
A proper fix is to subscribe to each new BTC block rather than each staking tx, such that upon each new BTC block, unbonding watcher sees whether it includes an unbonding tx for a BTC delegation. If yes then unbonding watcher reports it to Babylon.
The text was updated successfully, but these errors were encountered: