@@ -22,8 +22,6 @@ module Cardano.Wallet.Kernel.Util.Core (
22
22
, txOuts
23
23
, txIns
24
24
, txAuxId
25
- -- * Blocks
26
- , hashToUndo
27
25
) where
28
26
29
27
import Universum
@@ -35,12 +33,9 @@ import Data.Time.Clock.POSIX (getPOSIXTime)
35
33
import Data.Time.Units (fromMicroseconds )
36
34
import Serokell.Util (enumerate )
37
35
38
- import Pos.Binary.Class (decodeFull' )
39
- import qualified Pos.Chain.Block as Core
40
36
import qualified Pos.Chain.Txp as Core
41
37
import qualified Pos.Core as Core
42
38
import Pos.Crypto.Hashing (hash )
43
- import Pos.DB.Class (SerializedUndo , unSerialized )
44
39
45
40
import Cardano.Wallet.Kernel.Util
46
41
@@ -102,16 +97,6 @@ txIns = Set.fromList . NE.toList . Core._txInputs . Core.taTx
102
97
txAuxId :: Core. TxAux -> Core. TxId
103
98
txAuxId = hash . Core. taTx
104
99
105
- {- ------------------------------------------------------------------------------
106
- Blocks
107
- -------------------------------------------------------------------------------}
108
-
109
- hashToUndo :: (Core. HeaderHash -> IO (Maybe SerializedUndo )) -> Core. HeaderHash -> IO (Maybe Core. Undo )
110
- hashToUndo getSerUndo hh = do
111
- getSerUndo hh <&> \ case
112
- Nothing -> Nothing
113
- Just bytes -> (either (const Nothing ) Just . decodeFull' . unSerialized) bytes
114
-
115
100
{- ------------------------------------------------------------------------------
116
101
External auxiliary
117
102
-------------------------------------------------------------------------------}
0 commit comments