plutus-chain-index-core-1.2.0.0
Safe Haskell None
Language Haskell2010

Cardano.Protocol.Socket.Type

Synopsis

Documentation

type Tip = Block Source #

Tip of the block chain type (used by node protocols).

newtype BlockId Source #

The node protocols require a block header type.

Instances

Instances details
Eq BlockId Source #
Instance details

Defined in Cardano.Protocol.Socket.Type

Ord BlockId Source #
Instance details

Defined in Cardano.Protocol.Socket.Type

Show BlockId Source #
Instance details

Defined in Cardano.Protocol.Socket.Type

Generic BlockId Source #
Instance details

Defined in Cardano.Protocol.Socket.Type

NoThunks BlockId Source #
Instance details

Defined in Cardano.Protocol.Socket.Type

Pretty BlockId Source #
Instance details

Defined in Cardano.Protocol.Socket.Type

Serialise BlockId Source #
Instance details

Defined in Cardano.Protocol.Socket.Type

type Rep BlockId Source #
Instance details

Defined in Cardano.Protocol.Socket.Type

type Rep BlockId = D1 (' MetaData "BlockId" "Cardano.Protocol.Socket.Type" "plutus-chain-index-core-1.2.0.0-vEgAIGWZqMIuVHBPih2W5" ' True ) ( C1 (' MetaCons "BlockId" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "getBlockId") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ByteString )))

blockId :: Block -> BlockId Source #

A hash of the block's contents.

cfgNetworkMagic :: NetworkMagic Source #

A temporary definition of the protocol version. This will be moved as an argument to the client connection function in a future PR (the network magic number matches the one in the test net created by scripts)

epochSlots :: EpochSlots Source #

Boilerplate codecs used for protocol serialisation.

The number of epochSlots is specific to each blockchain instance. This value is what the cardano main and testnet uses. Only applies to the Byron era.

chainSyncCodec :: forall block. ( Serialise block, Serialise ( HeaderHash block)) => Codec ( ChainSync block ( Point block) Tip ) DeserialiseFailure IO ByteString Source #

These codecs are currently used in the mock nodes and will probably soon get removed as the mock nodes are phased out.

Orphan instances