Skip to content

Commit ab8ea15

Browse files
authored
Merge pull request #4 from matiwinnetou/main
Fix budgets
2 parents 68e1fa4 + 3bab0a0 commit ab8ea15

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/bloxbean/cardano/aiken/tx/evaluator/TxEvaluator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private static SlotConfig.SlotConfigByReference getDefaultSlotConfig() {
143143

144144
private static InitialBudgetConfig.InitialBudgetByValue getDefaultInitialBudgetConfig() {
145145
InitialBudgetConfig.InitialBudgetByValue initialBudgetConfig = new InitialBudgetConfig.InitialBudgetByValue();
146-
initialBudgetConfig.mem = 10000000;
146+
initialBudgetConfig.mem = 14000000L;
147147
initialBudgetConfig.cpu = 10000000000L;
148148

149149
return initialBudgetConfig;

src/test/java/com/bloxbean/cardano/aiken/tx/evaluator/EvalPhaseTwoTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void eval_phase_two() {
3030
slotConfig.slot_length = 1000;
3131

3232
InitialBudgetConfig.InitialBudgetByValue initialBudgetConfig = new InitialBudgetConfig.InitialBudgetByValue();
33-
initialBudgetConfig.mem = 16000000L;
33+
initialBudgetConfig.mem = 14000000L;
3434
initialBudgetConfig.cpu = 10000000000L;
3535

3636
for (int i=0; i<30; i++) { //Looping to check any occasional jvm crash error
@@ -52,7 +52,7 @@ void eval_phase_two_failed() {
5252
slotConfig.slot_length = 1000;
5353

5454
InitialBudgetConfig.InitialBudgetByValue initialBudgetConfig = new InitialBudgetConfig.InitialBudgetByValue();
55-
initialBudgetConfig.mem = 16000000L;
55+
initialBudgetConfig.mem = 14000000L;
5656
initialBudgetConfig.cpu = 10000000000L;
5757

5858
for (int i=0; i<30; i++) { //Looping to check any occasional jvm crash error

0 commit comments

Comments
 (0)