nearcore icon indicating copy to clipboard operation
nearcore copied to clipboard

store: pass StoreUpdate as argument to ShardTries::apply_all

Open mina86 opened this issue 2 years ago • 0 comments

Rather than having ShardTries::apply_all create a new StoreUpdate and return it, change it such that it takes the update as an argument. This brings the method in line with other methods of the struct which also take reference to StoreUpdate as argument. It also renders some of the calls to StoreUpdate::merge unnecessary. The cost is that the call sites is now a bit more verbose since an explicit creation of the StoreUpdate is necessary.

mina86 avatar Oct 18 '22 23:10 mina86