dcSpark / cardano-multiplatform-lib

Rust implementation of Cardano
MIT License
99 stars 36 forks source link

shelley genesis: support fractional slot length #361

Closed ecioppettini closed 2 months ago

ecioppettini commented 2 months ago

when trying to parse the shelley genesis file generated by yaci-devkit I got an error because the slotLength it's 1.0 instead of 1. It seems like the value can be actually have decimals (e.g https://github.com/bloxbean/yaci-devkit/blob/bef2cf9252972b6935b59650b347d95d78480278/applications/cli/src/main/java/com/bloxbean/cardano/yacicli/localcluster/ClusterCommands.java#L98 ), although I'm actually not sure if there is a spec for these fields anywhere.