Skip to content

Commit 17c83b8

Browse files
committed
Upd cardano pins
1 parent 715a964 commit 17c83b8

8 files changed

Lines changed: 22 additions & 22 deletions

File tree

app/Options.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Cardano.Api
44
import Data.Foldable (fold)
55
import Network.Wai.Handler.Warp (Port)
66
import Options.Applicative
7-
import Ouroboros.Network.Protocol.LocalStateQuery.Type (LeashID (..))
7+
import Ouroboros.Network.Protocol.LocalStateQuery.Type (LeashId (..))
88
import System.Environment.Blank (getEnvDefault)
99
import Text.Read (readMaybe)
1010

@@ -25,7 +25,7 @@ data Options = Options
2525
, httpServerPort :: Port
2626
, logsPath :: Maybe FilePath
2727
, sqlitePath :: Maybe FilePath
28-
, leashId :: LeashID
28+
, leashId :: LeashId
2929
}
3030
deriving (Show, Eq)
3131

@@ -99,7 +99,7 @@ mkParseOptions = do
9999
<> help "Path to sqlite database"
100100
)
101101
optLeashId =
102-
LeashID
102+
LeashId
103103
<$> option
104104
auto
105105
( long "leash-id"

cabal.project

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ constraints:
2828
source-repository-package
2929
type: git
3030
location: https://github.com/tweag/ouroboros-network
31-
tag: 461bbd3f6a27bc282d8a2b7c54e9ef929f30efb0
32-
--sha256: sha256-lEw68KGx16CkBktEeS4xyth6zh9doLewQqxHAiUrxcQ=
31+
tag: 932ab7740673f5560b3d382e9024cb247586eb2a
32+
--sha256: sha256-Bh0QU0XzHO+zgGQ7mUyIl0rC/2rOznU/ea0XOlXW2NU=
3333
subdir:
3434
ouroboros-network
3535
ouroboros-network-protocols
@@ -39,8 +39,8 @@ source-repository-package
3939
source-repository-package
4040
type: git
4141
location: https://github.com/tweag/ouroboros-consensus
42-
tag: 41798759677482cd0ff46354ef44fa4e20640134
43-
--sha256: sha256-0iWWFuVAe2aKfGbjSW/WNSJwdHyixf326fwFIGOOcJI=
42+
tag: 3a8f660f6cc0b25e798b9e2b47b3b6675bfa4169
43+
--sha256: sha256-80dy1XW2/4Dh6PclQGmZBaLDwcnzfOmnq9+B/Ng84lY=
4444
subdir:
4545
ouroboros-consensus
4646
ouroboros-consensus-cardano
@@ -50,7 +50,7 @@ source-repository-package
5050
source-repository-package
5151
type: git
5252
location: https://github.com/tweag/cardano-api
53-
tag: e18961dffc32872d4293e06dddcf376cd1784b65
54-
--sha256: sha256-OhA7E8Jl04eDybfpz0Ks+jH7X4yDUI4O3mY2lMj6eHE=
53+
tag: 19e8ce17e42ed0b77a8f55d4086d4319b2eb1f7a
54+
--sha256: sha256-ixo+JhDXT5hse/y1YrabTYz9f16Pge9JvYHRZnTItxM=
5555
subdir:
5656
cardano-api

docs/specification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ https://ouroboros-consensus.cardano.intersectmbo.org/docs/references/miscellaneo
362362

363363
We consider the leashing implementation utilising the existing LoE mechanism.
364364

365-
1. We introduce a `LeashingState blk = Map LeashID (AnchoredFragment (HeaderWithTime blk))` structure to keep the leashing fragments associated with each leashing client.
365+
1. We introduce a `LeashingState blk = Map LeashId (AnchoredFragment (HeaderWithTime blk))` structure to keep the leashing fragments associated with each leashing client.
366366
2. We update the `LocalStateQuery` server to interact with that state:
367367
- If a new client connects to the server with `leashId`, the server will put the `leashId` together with the client's leashing fragment into the leashing state;
368368
- The leashing fragment is calculated using the current chain of the node and the `Target (Point Block)` provided by user. It's either a `SpecificPoint pt`, `ImmutableTip` or `VolatileTip`.

flake.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
flake-utils.url = "github:numtide/flake-utils";
3131

32-
cardano-node.url = "github:tweag/cardano-node/fd69ca5b5b34c576d1a5375e8f1f13902ce5d822";
32+
cardano-node.url = "github:tweag/cardano-node/3573ea1950e088b6ab251b1cd67287d412ba083c";
3333
};
3434

3535
outputs = inputs: inputs.flake-utils.lib.eachDefaultSystem (system:

lib/PSR/Chain.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ sysStartQuery = do
113113

114114
runLocalStateQueryExpr ::
115115
C.LocalNodeConnectInfo ->
116-
Net.Query.LeashID ->
116+
Net.Query.LeashId ->
117117
C.ChainPoint ->
118118
C.LocalStateQueryExpr C.BlockInMode C.ChainPoint C.QueryInMode () IO a ->
119119
IO a

lib/PSR/ConfigMap.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import Data.Map qualified as Map
2020
import Data.Text (Text)
2121
import Data.Text qualified as Text
2222
import Data.Yaml (decodeFileEither)
23-
import Ouroboros.Network.Protocol.LocalStateQuery.Type (LeashID)
23+
import Ouroboros.Network.Protocol.LocalStateQuery.Type (LeashId)
2424
import PSR.Chain (mkLocalNodeConnectInfo)
2525
import PSR.Types (deriveJSONRecord, deriveJSONSimpleSum)
2626
import PlutusLedgerApi.Common (
@@ -92,7 +92,7 @@ data ConfigMap = ConfigMap
9292
, cmShadowScripts :: Map C.ScriptHash [ResolvedScript]
9393
, cmTargetScriptNames :: Map C.ScriptHash (Maybe Text)
9494
, cmLocalNodeConn :: C.LocalNodeConnectInfo
95-
, cmLeashId :: LeashID
95+
, cmLeashId :: LeashId
9696
, cmRunningMode :: RunningMode
9797
}
9898

@@ -194,7 +194,7 @@ readScriptFile scriptYamlDir scrutScriptHash (ix, ScriptDetails{..}) = do
194194
}
195195

196196
-- | Parse the config from a given Yaml file on disk
197-
readConfigMap :: FilePath -> C.NetworkId -> C.SocketPath -> LeashID -> IO (Either String ConfigMap)
197+
readConfigMap :: FilePath -> C.NetworkId -> C.SocketPath -> LeashId -> IO (Either String ConfigMap)
198198
readConfigMap scriptYaml networkId socketPath leashId = runExceptT $ do
199199
ConfigMapFile{..} <- withExceptT show $ ExceptT $ decodeFileEither scriptYaml
200200
let scriptYamlDir = dropFileName scriptYaml

lib/PSR/ContextBuilder.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import Data.Maybe (mapMaybe)
3333
import Data.Set (Set)
3434
import Data.Set qualified as Set
3535
import GHC.Exts qualified as List (IsList (..))
36-
import Ouroboros.Network.Protocol.LocalStateQuery.Type (LeashID)
36+
import Ouroboros.Network.Protocol.LocalStateQuery.Type (LeashId)
3737
import PSR.Chain
3838
import PSR.ConfigMap (ConfigMap (..), ResolvedScript (..))
3939
import PSR.Evaluation.Api (evaluateTransactionExecutionUnitsShelley)
@@ -97,7 +97,7 @@ mkBlockContext ::
9797
ContextBuilderMetrics ->
9898
C.BlockHeader ->
9999
C.LocalNodeConnectInfo ->
100-
LeashID ->
100+
LeashId ->
101101
C.ChainPoint ->
102102
C.AlonzoEraOnwards era ->
103103
[C.Tx era] ->
@@ -117,7 +117,7 @@ mkBlockContext metrics bh conn leashId prevCp era txs = do
117117
-- NOTE: This is a costly function, but we only run it once.
118118
getSpendProjectedUtxoMap ::
119119
C.LocalNodeConnectInfo ->
120-
LeashID ->
120+
LeashId ->
121121
C.ChainPoint ->
122122
C.ShelleyBasedEra era ->
123123
Set C.ScriptHash ->

0 commit comments

Comments
 (0)