Fix remaining bugs in monero-wallet tests

This commit is contained in:
Luke Parker
2024-07-06 03:24:38 -04:00
parent 788c4fc0a7
commit b2c962cd3e
5 changed files with 31 additions and 33 deletions

View File

@@ -147,7 +147,7 @@ impl Decoys {
pub fn positions(&self) -> Vec<u64> {
let mut res = Vec::with_capacity(self.len());
res.push(self.offsets[0]);
for m in 1 .. res.len() {
for m in 1 .. self.len() {
res.push(res[m - 1] + self.offsets[m]);
}
res