Skip to content

Commit c3eccf6

Browse files
committed
fix: test cases
1 parent c889ab7 commit c3eccf6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

modules/spo_state/src/state.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,6 @@ mod tests {
11101110
assert_eq!(blocks.len(), 1);
11111111
assert_eq!(blocks[0], block.number);
11121112

1113-
let blocks = state.get_blocks_by_pool_and_epoch(&vec![1], 3).unwrap();
1114-
assert_eq!(blocks.len(), 0);
1113+
assert!(state.get_blocks_by_pool_and_epoch(&vec![1], 3).is_none());
11151114
}
11161115
}

modules/spo_state/src/store_config.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ impl StoreConfig {
4848
}
4949

5050
pub fn store_historical_state(&self) -> bool {
51-
self.store_registration || self.store_updates || self.store_delegators || self.store_votes
51+
self.store_registration
52+
|| self.store_updates
53+
|| self.store_delegators
54+
|| self.store_votes
55+
|| self.store_blocks
5256
}
5357
}
5458

0 commit comments

Comments
 (0)