From c15aedf190f31fade48de40b6c1ddb4ed10e0303 Mon Sep 17 00:00:00 2001 From: cgilliard Date: Tue, 21 Jan 2020 03:05:36 -0700 Subject: [PATCH] Bug fix for highest_index in output API. (#3200) https://github.com/mimblewimble/grin/issues/3199 --- chain/src/txhashset/txhashset.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/src/txhashset/txhashset.rs b/chain/src/txhashset/txhashset.rs index 62f43a0cf..cd2a6ca8b 100644 --- a/chain/src/txhashset/txhashset.rs +++ b/chain/src/txhashset/txhashset.rs @@ -298,7 +298,7 @@ impl TxHashSet { /// highest output insertion index available pub fn highest_output_insertion_index(&self) -> u64 { - pmmr::n_leaves(self.output_pmmr_h.last_pos) + self.output_pmmr_h.last_pos } /// As above, for rangeproofs