input-output-hk / rust-byron-cardano

rust client libraries to deal with the current cardano mainnet (byron / cardano-sl)
MIT License
264 stars 75 forks source link

Mockchain changes: LedgerParameters in the Leadership and apply_fragment #707

Closed NicolasDP closed 5 years ago

NicolasDP commented 5 years ago

Make the Leadership holds the version of the LedgerParameters for the current epoch. This will be the source of truth during the Epoch of the parameters.

split the Ledger::apply_fragment from the Ledger::apply_block function. This will allow to test Block fragments (actually named Messages) in the fragment selection algorithm in jormungandr's MemPool