@@ -597,12 +597,17 @@ func (ls *LedgerState) ledgerProcessBlocks() {
597597 // Get parameters from Shelley Genesis
598598 shelleyGenesis := ls .config .CardanoNodeConfig .ShelleyGenesis ()
599599 if shelleyGenesis == nil {
600- return errors .New ("failed to get Shelley Genesis config" )
600+ return errors .New (
601+ "failed to get Shelley Genesis config" ,
602+ )
601603 }
602604 // Get security parameter (k)
603605 k := shelleyGenesis .SecurityParam
604606 if k < 0 {
605- return fmt .Errorf ("security param must be non-negative: %d" , k )
607+ return fmt .Errorf (
608+ "security param must be non-negative: %d" ,
609+ k ,
610+ )
606611 }
607612 securityParam := uint64 (k )
608613 currentTipSlot := ls .currentTip .Point .Slot
@@ -618,10 +623,14 @@ func (ls *LedgerState) ledgerProcessBlocks() {
618623 shouldValidate = true
619624 ls .config .Logger .Debug (
620625 "enabling validation as block within k-slot window" ,
621- "security_param" , securityParam ,
622- "currentTipSlot" , currentTipSlot ,
623- "cutoffSlot" , cutoffSlot ,
624- "blockSlot" , blockSlot ,
626+ "security_param" ,
627+ securityParam ,
628+ "currentTipSlot" ,
629+ currentTipSlot ,
630+ "cutoffSlot" ,
631+ cutoffSlot ,
632+ "blockSlot" ,
633+ blockSlot ,
625634 )
626635 } else {
627636 shouldValidate = false
@@ -1049,7 +1058,11 @@ func (ls *LedgerState) EvaluateTx(
10491058 return err
10501059 })
10511060 if err != nil {
1052- return 0 , lcommon.ExUnits {}, nil , fmt .Errorf ("TX %s failed evaluation: %w" , tx .Hash (), err )
1061+ return 0 , lcommon.ExUnits {}, nil , fmt .Errorf (
1062+ "TX %s failed evaluation: %w" ,
1063+ tx .Hash (),
1064+ err ,
1065+ )
10531066 }
10541067 }
10551068 return fee , totalExUnits , redeemerExUnits , nil
0 commit comments