IntersectMBO / IntersectMBO/ouroboros-consensus

Hard fork combinator: Track entropy throughout the chain

Open
#667 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Haskell
Stars
67
Forks
43
Avg merge
5d 13h
Merged PRs (30d)
43

Description

This will be necessary if we need to pass entropy from one era to the next. Right now it seems that this is not a requirement, but if it is, we could do something akin to `PartialLedgerConfig`:

```haskell
newtype Entropy = Entropy ByteString

-- | Partial consensus config
--
-- Unlike 'HasPartialLedgerConfig', there is no explicit update function here;
-- this happens instead more indirectly by picking a suitable 'ValidateView'
-- for 'HardForkProtocol'.
class ( ConsensusProtocol p
, NoUnexpectedThunks (PartialConsensusConfig p)
) => HasPartialConsensusConfig p where
data PartialConsensusConfig p :: *

-- | Construct 'ConsensusConfig' from 'PartialConsensusConfig'
completeConsensusConfig :: EpochInfo Identity
-> Entropy
-> PartialConsensusConfig p -> ConsensusConfig p

```

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.