celestia-node
celestia-node copied to clipboard
refactor(daser): use functional options pattern to configure daser
Overview
The DAS module is currently reliant on default constant global variables acting as configuration variables.
This makes changing configuration values for the DAS module non-trivial, as it requires code changes and binary re-building.
In this PR, we refactor the global configuration variables used in the DAS module to use the functional options pattern, which will trivialize the process of configuring a Celestia node.
Reference Issue
#1063 #709