Put the execution state during block execution. Has to be empty.
(&self, state: FvmExecState<SS>)
| 301 | |
| 302 | /// Put the execution state during block execution. Has to be empty. |
| 303 | async fn put_exec_state(&self, state: FvmExecState<SS>) { |
| 304 | let mut guard = self.exec_state.lock().await; |
| 305 | assert!(guard.is_none(), "exec state not empty"); |
| 306 | *guard = Some(state); |
| 307 | } |
| 308 | |
| 309 | /// Take the execution state during block execution. Has to be non-empty. |
| 310 | async fn take_exec_state(&self) -> FvmExecState<SS> { |