Skip to content

Commit

Permalink
#103 Ignore redeemer parsing error on mainnet (#104)
Browse files Browse the repository at this point in the history
* #103 - Workaround: Incase of redeemer parse error, catch the error and continue

* Bump version for release
  • Loading branch information
satran004 authored Jan 3, 2025
1 parent c708c86 commit 7378641
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
group = com.bloxbean.cardano
artifactId = yaci
version = 0.3.5-SNAPSHOT
version = 0.3.4.1

0 comments on commit 7378641

Please sign in to comment.