File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
core/src/consensus/tendermint Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -1033,11 +1033,6 @@ impl Worker {
1033
1033
let client = self . client ( ) ;
1034
1034
let backup = restore ( client. get_kvdb ( ) . as_ref ( ) ) ;
1035
1035
if let Some ( backup) = backup {
1036
- if backup. step == Step :: Commit {
1037
- self . finalized_view_of_current_block = None ;
1038
- } else {
1039
- self . finalized_view_of_current_block = backup. finalized_view_of_current_block ;
1040
- }
1041
1036
let backup_step = match backup. step {
1042
1037
Step :: Propose => TendermintState :: Propose ,
1043
1038
Step :: Prevote => TendermintState :: Prevote ,
@@ -1051,6 +1046,7 @@ impl Worker {
1051
1046
self . height = backup. height ;
1052
1047
self . view = backup. view ;
1053
1048
self . finalized_view_of_previous_block = backup. finalized_view_of_previous_block ;
1049
+ self . finalized_view_of_current_block = backup. finalized_view_of_current_block ;
1054
1050
1055
1051
if let Some ( proposal) = backup. proposal {
1056
1052
if client. block ( & BlockId :: Hash ( proposal) ) . is_some ( ) {
You can’t perform that action at this time.
0 commit comments