make sure proposer cache stores by dep root

This commit is contained in:
Eitan Seri-Levi
2026-05-31 22:04:52 +03:00
parent 36157c5815
commit 46b6c7519c
6 changed files with 59 additions and 19 deletions

View File

@@ -256,7 +256,11 @@ fn correct_proposer_bad_signature() {
!ctx.preferences_cache
.get_seen_validator(&slot, ctx.head_block_root, actual_proposer)
);
assert!(ctx.preferences_cache.get_preferences(&slot).is_none());
assert!(
ctx.preferences_cache
.get_preferences(&slot, ctx.head_block_root)
.is_none()
);
}
#[test]