cardano-test
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Consensus.Cardano.ByronCompatibility

Description

The purpose of these tests are to ensure that when in the Byron era, nodes using CardanoBlock can still communicate with older nodes using ByronBlock. This is tested by running roundtrip tests using the encoders of ByronBlock and the decoders of CardanoBlock and vice versa. By introducing a newtype wrapper for each direction, we are able to reuse the existing roundtrip test functions.

Documentation