mlabs-haskell / plutip

A Cardano tool to spin up a testnet and run contracts with an EDSL to describe the instructions. Rhymes with tulip for no particular reason.
Apache License 2.0
54 stars 24 forks source link

No rewards for staking pool delegation #149

Open mikekeke opened 1 year ago

mikekeke commented 1 year ago

To make slot length and epoch size configurable in plutip, module Cluster.hs was brought (copy-pasted) from cardano-wallet local cluster framework into plutip. After this was done receiving rewards for staking pool delegation stopped working.

Changes in Cluster.hs are minimal and should not affect rewards. But if cluster launch performed with original Cluster.hs rewards starts working again. It's not yet clear what is broken.

Branch forked from master, where cluster launch reverted back to use module from cardano-wallet and rewards are working: plutip-debug https://github.com/mlabs-haskell/plutip/commit/8e26b47cef5b51d97929d16ef6e68239c7cc5d0b

Where it breaks in master: dc5c9440fe2a66d533f383bd6f6477ad764da1f9 - works 650e796dffc1ac502311260a56f6f67f2cf80dcf - does not

klntsky commented 4 months ago

For context: here's a skipped test that reproduces this:

https://github.com/Plutonomicon/cardano-transaction-lib/blob/0576feabc1c7ec03eceb0d65a09fec4b26939322/test/Plutip/Staking.purs#L380