Additional refactor of features/modular to make further use of inheritance from a BaseNeuron class. Incorporates some ideas from @Eugene-hu . Still some issues with 'pushing down' logic, my attempt to solve is via noisy base methods in the parent class that only shut up if you overload them.
# neurons/validator.py
class ValidatorNeuron(BaseValidatorNeuron):
...
# neurons/miner.py
class MinerNeuron(BaseMinerNeuron):
...
# base/validator.py
class BaseValidatorNeuron(BaseNeuron):
...
# base/miner.py
class BaseMinerNeuron(BaseNeuron):
...
Additional refactor of
features/modular
to make further use of inheritance from aBaseNeuron
class. Incorporates some ideas from @Eugene-hu . Still some issues with 'pushing down' logic, my attempt to solve is via noisy base methods in the parent class that only shut up if you overload them.Also attempts to add pylint