Merge pull request #5767 from IntersectMBO/bladyjoker/leios-prototype-backwards-compat-fix
[Leios Prototype] Backwards compat fix
[Leios Prototype] Backwards compat fix
The trace messages that get emitted differ between debug and release builds. Therefore, running the same test (with the same golden file of expected trace messages) both for debug and release builds will cause problems. To avoid these, we now have two separate tests, each with its own golden file, and only run the appropriate one depending on the build type. The only reason this did not lead to problems so far is that the test only inserted four entries into the table, not triggering any interesting internal events. However, we *will* emit internal messages once we start migrating the union level when a union is paid off (or we decide to test more interesting operations). Since we now can, I made sure that these tests now at least trigger the creation of a merge.
Drop `x86_64-darwin` from Hydra builds
Server.hs carried a local copy of sealWriteTx that re-entered cardano-api (toCardanoApiTx + sealedTxFromCardano) to wrap an already ledger-native balanceTx result. Import the ledger-native sealWriteTx from Transaction.Ledger instead; the local helper goes away. Two call sites now pass Write.recentEra explicitly. Drops the cardano-api bridges cardanoEraFromRecentEra, toCardanoApiTx and W.sealedTxFromCardano from this module's imports.