From c0cfc203c3dcae7f520e62c7c14bc62c4cd0da06 Mon Sep 17 00:00:00 2001 From: Dusan Klinec Date: Thu, 27 Sep 2018 16:12:51 +0200 Subject: [PATCH] xmr: set_out minor function call fix --- src/apps/monero/protocol/signing/step_06_set_out1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/monero/protocol/signing/step_06_set_out1.py b/src/apps/monero/protocol/signing/step_06_set_out1.py index cf1a87c7f..3357089cb 100644 --- a/src/apps/monero/protocol/signing/step_06_set_out1.py +++ b/src/apps/monero/protocol/signing/step_06_set_out1.py @@ -328,7 +328,7 @@ def _is_last_in_batch(state: State, idx, bidx=None): """ Returns true if the current output is last in the rsig batch """ - bidx = _get_rsig_batch(idx) if bidx is None else bidx + bidx = _get_rsig_batch(state, idx) if bidx is None else bidx batch_size = state.rsig_grp[bidx] return (idx - sum(state.rsig_grp[:bidx])) + 1 == batch_size