Skip to content

Commit

Permalink
Merge pull request #55 from iotaledger/fix/removed-max-supply-check-f…
Browse files Browse the repository at this point in the history
…or-iota

removed check on max supply
  • Loading branch information
shufps authored Sep 15, 2023
2 parents 0481606 + e748c8e commit cd7b097
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/iota/essence_stardust.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static uint8_t validate_inputs(const uint8_t *data, uint32_t *idx,
// --- validate outputs ---
static uint8_t validate_outputs(const uint8_t *data, uint32_t *idx,
BASIC_OUTPUT **outputs_ptr,
uint16_t *outputs_count, uint8_t coin_type)
uint16_t *outputs_count)
{
// uses safe getter macro that returns an error in case of invalid access
MUST(get_uint16(data, idx, outputs_count));
Expand Down Expand Up @@ -142,11 +142,6 @@ static uint8_t validate_outputs(const uint8_t *data, uint32_t *idx,
*idx = *idx + sizeof(BASIC_OUTPUT);
}

// shimmer has inflation
if (coin_type == COIN_IOTA) {
MUST(total_amount <= TOTAL_AMOUNT_MAX);
}

return 1;
}

Expand Down Expand Up @@ -293,7 +288,7 @@ uint8_t essence_parse_and_validate_stardust(API_CTX *api)

MUST(validate_outputs(api->data.buffer, &idx,
(BASIC_OUTPUT **)&api->essence.outputs,
&api->essence.outputs_count, api->coin));
&api->essence.outputs_count));

MUST(validate_payload(api->data.buffer, &idx));

Expand Down

0 comments on commit cd7b097

Please sign in to comment.