Put the execution state during block execution. Has to be empty.
(&self, state: FvmExecState<MemoryBlockstore>)
| 180 | |
| 181 | /// Put the execution state during block execution. Has to be empty. |
| 182 | async fn put_exec_state(&self, state: FvmExecState<MemoryBlockstore>) { |
| 183 | let mut guard = self.exec_state.lock().await; |
| 184 | assert!(guard.is_none(), "exec state not empty"); |
| 185 | *guard = Some(state); |
| 186 | } |
| 187 | |
| 188 | /// Take the execution state during block execution. Has to be non-empty. |
| 189 | async fn take_exec_state(&self) -> FvmExecState<MemoryBlockstore> { |