| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.Mock.Ledger.Address
Synopsis
- data Addr
- type AddrDist = Map Addr NodeId
- mkAddrDist ∷ NumCoreNodes → AddrDist
Documentation
Mock address
Instances
| FromCBOR Addr Source # | |
| ToCBOR Addr Source # | |
| NFData Addr Source # | |
Defined in Ouroboros.Consensus.Mock.Ledger.Address | |
| IsString Addr Source # | |
Defined in Ouroboros.Consensus.Mock.Ledger.Address Methods fromString ∷ String → Addr # | |
| Show Addr Source # | |
| Eq Addr Source # | |
| Ord Addr Source # | |
| MemPack Addr Source # | |
| NoThunks Addr Source # | |
| Condense Addr Source # | |
| Serialise Addr Source # | |
| IndexedMemPack (LedgerState (SimpleBlock c ext) EmptyMK) TxOut Source # | |
Defined in Ouroboros.Consensus.Mock.Ledger.Block Methods indexedPackedByteCount ∷ LedgerState (SimpleBlock c ext) EmptyMK → TxOut → Int Source # indexedPackM ∷ LedgerState (SimpleBlock c ext) EmptyMK → TxOut → Pack s () Source # indexedUnpackM ∷ Buffer b ⇒ ∀ s. LedgerState (SimpleBlock c ext) EmptyMK → Unpack s b TxOut Source # indexedTypeName ∷ LedgerState (SimpleBlock c ext) EmptyMK → String 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