input-output-hk / plutus-apps

The Plutus application platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PAB should query node parameters instead of reading from config file

bwbush opened this issue · comments

Describe the feature you'd like

It is fragile and error-prone to have the PAB read the node's protocol parameters from a JSON file when its node connection could be used to query those parameters directly.

Also, not supplying a protocol parameters file results in the PAB using a Data.Default.def value for those, which very well may be inappropriate:

protocolParameters <- maybe (pure def) readPP pscProtocolParametersJsonPath
.

Describe alternatives you've considered

Eliminate the pscProtocolParametersJsonPath field of PABServerConfig, and instead query the node directly for its protocol parameters.

ezoic increase your site revenue