Skip to content

Commit 42f6948

Browse files
committed
psbt: fix a (harmless) off-by-one assert check
1 parent d8528f0 commit 42f6948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/utils/psbt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static bool key_iter_init(
3737
const struct wally_psbt* psbt, const size_t index, const bool is_input, const bool is_private, key_iter* iter)
3838
{
3939
JADE_ASSERT(psbt);
40-
JADE_ASSERT(index <= (is_input ? psbt->num_inputs : psbt->num_outputs));
40+
JADE_ASSERT(index < (is_input ? psbt->num_inputs : psbt->num_outputs));
4141
JADE_ASSERT(iter);
4242
iter->psbt = psbt;
4343
iter->index = index;

0 commit comments

Comments
 (0)