Skip to content

Commit

Permalink
fix(iota-genesis-builder): debug illegal vesting outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
miker83z committed Jan 17, 2025
1 parent ec1bc5d commit 21e80f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/iota-genesis-builder/src/stardust/process_outputs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,12 @@ impl<I> SwapSplitIterator<I> {
// index being a number in the range 1 to OUTPUT_INDEX_MAX is safe because
// vesting output indexes are always 0
// https://github.com/iotaledger/snapshot-tool-new-supply
// debug_assert!(original_header.output_id().index() == 0);
if original_header.output_id().index() == 0 {
debug!(
"Found a vesting output with output index different than 0: {}",
original_header.output_id()
);
}
let index = 1 + (pos as u16 % (OUTPUT_INDEX_MAX - 1));
(
*original_header.output_id().transaction_id(),
Expand Down

0 comments on commit 21e80f1

Please sign in to comment.