pokt-network / pocket

Official implementation of the Pocket Network Protocol v1
https://pokt.network
MIT License
61 stars 33 forks source link

[Utility] Adjust default configuration based on the user-defined configuration #858

Open adshmh opened 1 year ago

adshmh commented 1 year ago

Objective

Default configuration should not result in errors. More specifically, there seems to be some scenarios where user-defined configuration should result in a modified default configuration. For example, currently if the user enables fisherman, the default servicer configuration will still be applied, resulting in an error when initializing the utility module, because fisherman and servicer cannot both be enabled.

Origin Document

Encountered this in #803, after adding a default servicer configuration.

image

and the corresponding set of unit tests that would fail if a servicer default config is added:

image

Goals

Deliverable

Non-goals / Non-deliverables

General issue deliverables

Testing Methodology


Creator: [@adshmh] Co-Owners: [@Olshansk]