pmmr indexing related fix for get_outputs_by_pmmr_index function (#633)

This commit is contained in:
Yeastplume
2021-12-14 11:51:20 +00:00
committed by GitHub
parent 041b182fcc
commit b425107368
2 changed files with 195 additions and 153 deletions
+1 -1
View File
@@ -292,7 +292,7 @@ where
m: WalletProxyMessage,
) -> Result<WalletProxyMessage, libwallet::Error> {
let split = m.body.split(',').collect::<Vec<&str>>();
let start_index = split[0].parse::<u64>().unwrap();
let start_index = std::cmp::max(split[0].parse::<u64>().unwrap(), 1);
let max = split[1].parse::<u64>().unwrap();
let end_index = split[2].parse::<u64>().unwrap();
let end_index = match end_index {