Skip to content

Commit

Permalink
#103 - Workaround: Incase of redeemer parse error, catch the error an…
Browse files Browse the repository at this point in the history
…d continue
  • Loading branch information
satran004 committed Jan 3, 2025
1 parent c708c86 commit 70f4d36
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,13 @@ private void handleWitnessDatumRedeemer(long block, List<Witnesses> witnesses, b
}
}
} else if (majorType == MajorType.MAP) {
List<Tuple<byte[], byte[]>> redeemerMapEntriesBytes = getRedeemerMapBytes(redeemersBytes);
List<Tuple<byte[], byte[]>> redeemerMapEntriesBytes = null;
try {
redeemerMapEntriesBytes = getRedeemerMapBytes(redeemersBytes);
} catch (Exception e) {
log.error("Error parsing redeemer map bytes", e);
redeemerMapEntriesBytes = new ArrayList<>();
}
if (redeemerMapEntriesBytes.size() != redeemers.size()) {
log.error("block: {} redeemer does not have the same size", block);
} else {
Expand Down

0 comments on commit 70f4d36

Please sign in to comment.