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 tried to eliminate
'world
lifetime by storingArc<RefCell<StateTransaction<'block, 'state>>>
insideWasmCache
. In this case problem will be incategorize_transactions
function. Basically:&mut WasmCache<'block, 'state>
is invariant over'block
thus callingvalidate
multiple times will fail borrow checkOriginally posted by @dima74 in #5082 (comment)
The text was updated successfully, but these errors were encountered: