bloxbean / yaci-store

A Cardano datastore implementation using Yaci
https://store.yaci.xyz/
MIT License
21 stars 8 forks source link

[Epoch store] If n2c is configured, latest protocol param endpoint should return data from local node #298

Open satran004 opened 4 months ago

satran004 commented 4 months ago

Currently, the latest protocol parameter endpoint returns data from the epoch_param table, which is used during transaction building. The data in epoch_param table is calculated in store's logic during epoch transition.

However, if n2c is configured, we can retrieve the protocol parameter directly from the node (or local_protocol_params table) to ensure that we return the correct value.