cardano-node
cardano-node copied to clipboard
tx-generator: cleanup handling of protocol parameters
On the chain protocol parameters can be updated. Currently the tx-generator queries the local node for the current state of the protocol parameters. This is problematic for several reasons:
- The behavior of the tx-generator becomes highly dynamic and difficult to debug.
- It is difficult the add stand-alone tests that run without a connection to a node.
- The tx-generator samples the protocol parameters only once (or a view times) at certain moments it may miss updates on the chain.
The protocol parameters are important for handling fees, Plutus fees and min-value-per-UTxO and this determines how the tx-generator splits funds to generate UTxOs.
A possible way around this is to use an approximation of the protocol parameters with safe lower/upper bounds of fees etc. It is safe to declare higher fees in for a tx than actually required
It would also be nice to extract the protocol parameters from the node-config. This should be in theory be possible. The node-config contains all the needed data. But there is no easy/obvious way to do it.
Waiting on @Jimbo4350 for assistance.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.