File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed
eras/dijkstra/impl/src/Cardano/Ledger/Dijkstra Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 99{-# LANGUAGE LambdaCase #-}
1010{-# LANGUAGE MultiParamTypeClasses #-}
1111{-# LANGUAGE PatternSynonyms #-}
12+ {-# LANGUAGE RecordWildCards #-}
1213{-# LANGUAGE StandaloneDeriving #-}
1314{-# LANGUAGE TypeFamilies #-}
1415{-# LANGUAGE TypeOperators #-}
@@ -41,7 +42,7 @@ import Cardano.Ledger.Dijkstra.TxBody (DijkstraEraTxBody (..))
4142import Cardano.Ledger.Dijkstra.TxWits ()
4243import Cardano.Ledger.Keys.WitVKey (witVKeyHash )
4344import Cardano.Ledger.MemoBytes (EqRaw (.. ))
44- import Control.DeepSeq (NFData (.. ))
45+ import Control.DeepSeq (NFData (.. ), deepseq )
4546import qualified Data.Set as Set
4647import Data.Typeable (Typeable )
4748import Data.Word (Word32 )
@@ -68,8 +69,22 @@ deriving instance EraTx era => Eq (DijkstraTx l era)
6869
6970deriving instance EraTx era => Show (DijkstraTx l era )
7071
71- instance NFData (DijkstraTx l era ) where
72- rnf = undefined
72+ instance
73+ ( EraTx era
74+ , NFData (TxWits era )
75+ , NFData (TxAuxData era )
76+ ) =>
77+ NFData (DijkstraTx l era )
78+ where
79+ rnf DijkstraTx {.. } =
80+ dtBody `deepseq`
81+ dtWits `deepseq`
82+ dtIsValid `deepseq`
83+ rnf dtAuxData
84+ rnf DijkstraSubTx {.. } =
85+ dstBody `deepseq`
86+ dstWits `deepseq`
87+ rnf dstAuxData
7388
7489deriving via
7590 InspectHeap (DijkstraTx l era)
You can’t perform that action at this time.
0 commit comments