Estimate Merkle update wu cost based on number of added+removed cells · Issue #719 · broxus/tycho · GitHub
More Web Proxy on the site http://driver.im/
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, the Merkle update wu is estimated based on the number of changed accounts. Instead, the estimation should be based on the actual number of added and removed cells in the Merkle update.
There is a method MerkleUpdate::compute_removed_cells() that computes a map of removed cells. During this process, it also determines the new cells, but does not return them.
We need to:
Implement a new method that returns both added and removed cells.
Refactor the existing method to use this new one internally.
Use the result of new method to recalculate the Merkle update wu, based on the total number of added + removed cells.
The text was updated successfully, but these errors were encountered:
Currently, the Merkle update wu is estimated based on the number of changed accounts. Instead, the estimation should be based on the actual number of added and removed cells in the Merkle update.
There is a method
MerkleUpdate::compute_removed_cells()
that computes a map of removed cells. During this process, it also determines the new cells, but does not return them.We need to:
The text was updated successfully, but these errors were encountered: