cardano-node icon indicating copy to clipboard operation
cardano-node copied to clipboard

tx-generator: cleanup handling of protocol parameters

Open MarcFontaine opened this issue 3 years ago • 3 comments
trafficstars

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

MarcFontaine avatar Apr 21 '22 11:04 MarcFontaine

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.

MarcFontaine avatar May 17 '22 07:05 MarcFontaine

Waiting on @Jimbo4350 for assistance.

deepfire avatar Jun 22 '22 14:06 deepfire

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.

github-actions[bot] avatar Oct 14 '25 02:10 github-actions[bot]