IntersectMBO / cardano-db-sync

A component that follows the Cardano chain and stores blocks and transactions in PostgreSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test HF to Conway

kderme opened this issue · comments

There is currently a HF test, but it uses the hardcoded TestForkAtEpoch config value. This has 2 disadvantages: this option will be eventually dropped and it's not that realistic as it's not the real way that HF will happen on mainnet. We could add a new test that forks using the parameter update proposal and in particular the protocol major field. After an adequate amount of these proposals (I think all genesis bootstrap keys need to provide one), there is a hard fork on the next epochy boundary.

In db, this proposals are depicted in param_proposal.protocol_major and after the fork in epoch_param.protocol_major