mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 15:00:30 +01:00
Previously this static property had been managed within BaseCurrencyNetwork itself and was accessed directly by callers. Now it is managed within Config, made private and accessed only via the new and well-documented baseCurrencyNetwork() method. The same goes for baseCurrencyNetworkParameters(). It is unfortunate that we must retain these mutable static fields and accessors, but after trying to eliminate them entirely, this approach is the lesser of two evils; attempting to use a Config instance and instance methods only ends up being quite cumbersome to implement, requiring Config to be injected into many more classes than it currently is. Getting access to the BaseCurrencyNetwork is basically a special case, and treating it specially as a static field is in the end the most pragmatic approach. |
||
---|---|---|
.. | ||
src |