cardano-multiplatform-lib icon indicating copy to clipboard operation
cardano-multiplatform-lib copied to clipboard

Inline network constants?

Open SebastienGllmt opened this issue 2 years ago • 0 comments

Cardano has two kinds of constants:

  • Constants in the genesis blocks of the various epochs that can't be changed
  • Protocol parameters in the genesis blocks of the various epochs that can be changed mid-epoch

We may want to provide some of these constants as part of CML. Getting the cost model externally is kind of tedious, but at the same time providing it as part of CML is dangerous because its value could change.

I'm not particularly convinced about inlining them, but I did notice that CSL did go with this approach: https://github.com/Emurgo/cardano-serialization-lib/pull/458

SebastienGllmt avatar Jul 27 '22 01:07 SebastienGllmt