IntersectMBO / IntersectMBO/ouroboros-network

Reduce the requirements for connecting to a local node socket

Open
#3,983 1 comment 0 reactions 0 assignees View on GitHub
duplicate
Dominant language
Haskell
Stars
296
Forks
104
Avg merge
2d 10h
Merged PRs (30d)
4

Description

Related to https://github.com/input-output-hk/cardano-node/issues/4402

In order for a `cardano-api` user to connect to a local node socket, the user currently has to fill this struct (defined in the API):
```
data LocalNodeConnectInfo mode =
LocalNodeConnectInfo {
localConsensusModeParams :: ConsensusModeParams mode,
localNodeNetworkId :: NetworkId,
localNodeSocketPath :: FilePath
}
```
However, once a user has defined the node socket path, the other two seem totally redundant, because the `node` we are connecting to already knows these values and the client can't make the `node` change them.

The proposed solution is that the client should only need to specify the node socket path, connect to it, and then be able to query the `node` for anything else it needs.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.