Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Addr
- type AddrDist = Map Addr NodeId
- mkAddrDist ∷ NumCoreNodes → AddrDist
Documentation
Mock address
Instances
IsString Addr Source # | |
Defined in Ouroboros.Consensus.Mock.Ledger.Address fromString ∷ String → Addr # | |
Show Addr Source # | |
FromCBOR Addr Source # | |
ToCBOR Addr Source # | |
NFData Addr Source # | |
Defined in Ouroboros.Consensus.Mock.Ledger.Address | |
Eq Addr Source # | |
Ord Addr Source # | |
NoThunks Addr Source # | |
Condense Addr Source # | |
Serialise Addr Source # | |
type AddrDist = Map Addr NodeId Source #
Mapping from addresses to node IDs
This is needed in order to assign stake to nodes.
mkAddrDist ∷ NumCoreNodes → AddrDist Source #
Construct address to node ID mapping