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
Currently wallet manager keeps track of vote balances, which leads to it duplicating all of the logic that is within handlers (and some other places). Although current implementation works just fine extending it with new handlers is difficult.
Possible Solution
Deduplicating all of that in one go is a challenging task that not a single person would be able to review. The task has to be split into several small PRs each building on top of the other.
#3298 move apply and revert block functions out of wallet
It seems that wallet class was intended to be modified externally. Apply and revert block functions were the only ones containing any update code. Wallet manager contains same exact code in its apply and revert block functions. Removing those functions from wallet and refactoring wallet manager seems like a natural first step.
Build vote balance is a misplaced bootstrap function which is running over recently restored wallet manager. Instead bootstrap method in transaction handlers should also set correct vote balances.
The text was updated successfully, but these errors were encountered:
Currently wallet manager keeps track of vote balances, which leads to it duplicating all of the logic that is within handlers (and some other places). Although current implementation works just fine extending it with new handlers is difficult.
Possible Solution
Deduplicating all of that in one go is a challenging task that not a single person would be able to review. The task has to be split into several small PRs each building on top of the other.
#3298 move apply and revert block functions out of wallet
It seems that wallet class was intended to be modified externally. Apply and revert block functions were the only ones containing any update code. Wallet manager contains same exact code in its apply and revert block functions. Removing those functions from wallet and refactoring wallet manager seems like a natural first step.
#3306 remove build vote balances function
Build vote balance is a misplaced bootstrap function which is running over recently restored wallet manager. Instead bootstrap method in transaction handlers should also set correct vote balances.
The text was updated successfully, but these errors were encountered: