fix(hydra): Working? State res v2.1

This commit is contained in:
nexy7574 2025-09-02 00:13:46 +01:00
commit 67193f7a5b
No known key found for this signature in database
2 changed files with 9 additions and 4 deletions

View file

@ -452,7 +452,7 @@ async fn get_statediff(&self, shortstatehash: ShortStateHash) -> Result<StateDif
.ok()
.take_if(|parent| *parent != 0);
debug_assert!(value.len() % STRIDE == 0, "value not aligned to stride");
debug_assert!(value.len().is_multiple_of(STRIDE), "value not aligned to stride");
let _num_values = value.len() / STRIDE;
let mut add_mode = true;