mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-08 12:21:09 +03:00
Correct mmr buffer index on remove, fixes #423
This commit is contained in:
parent
d3e5acccf9
commit
db0cce9fa0
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ where
|
||||||
let pos_sz = *position as usize;
|
let pos_sz = *position as usize;
|
||||||
if pos_sz > self.buffer_index && pos_sz - 1 < self.buffer_index + self.buffer.len()
|
if pos_sz > self.buffer_index && pos_sz - 1 < self.buffer_index + self.buffer.len()
|
||||||
{
|
{
|
||||||
self.buffer.remove(vec![*position], index).unwrap();
|
self.buffer.remove(vec![*position - self.buffer_index as u64], index).unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue