txpool: enactment state forced update (#12632)

* txpool: enactment state forced update

When `tree_route` computation fails, we still need to update the
`enactment_state` to be aligned with last known finalized/best block.

We do not execute enactment phase of maintain procedure, but we do
update the state.

* error -> debug

* test added
This commit is contained in:
Michal Kucharczyk
2022-11-07 21:12:26 +01:00
committed by GitHub
parent 81f123b72e
commit cf5c78dbe8
2 changed files with 30 additions and 2 deletions
+2 -2
View File
@@ -748,8 +748,8 @@ where
match result {
Err(msg) => {
log::warn!(target: "txpool", "{msg}");
return
log::debug!(target: "txpool", "{msg}");
self.enactment_state.lock().force_update(&event);
},
Ok(None) => {},
Ok(Some(tree_route)) => {