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 WasmCache stores &'world mut StateTransaction<'block, 'state> inside. We create WasmCache before obtaining any StateTransaction, so the first problem is that there is no 'world lifetime when we create WasmCache.
I tried to eliminate 'world lifetime by storing Arc<RefCell<StateTransaction<'block, 'state>>> inside WasmCache. In this case problem will be in categorize_transactions function. Basically:
I concluded that the current approach is the best:
since Store<T> instantiates and owns Instance, the only way to handle numerous T (corresponds to a transaction) while keeping a single Instance would be to have a comprehensive T (i.e. Option<CommonState<WithMut<'txn, 'block, 'base>, Validate<SignedTransaction>>>) and replace it transmuting about lifetimes (i.e. 'txn)
Originally posted by @dima74 in #5082 (comment)
The text was updated successfully, but these errors were encountered: