Nodechain is a service that allows you to create nodes on a blockchain and connect to them natively through APIs. The goal is to allow the user to build their own nodes natively without having to rely on external services.
Functions and files shouldn't be called 'backup' because Nodechain is not backing up anything. Instead, it is persisting the configuration. So, we should replace 'backup' word in the code with 'persistent configuration'. The file should be named something like 'config.json'.
Docker-composes should be configured with the configuration file inside a volume.
Description
Configuration persistence. If Connector is restarted for any reason, it will reload the currencies configuration from a backup file.
Fixes #213 (issue)
Dependencies (if any)
Type of change
How Has This Been Tested?
Nodechain running for eth in testnet network
Getting default configuration
Config for eth in testnet network updated successfully
Connector is restarted
Getting config for eth in testnet network
Test Configuration:
sw_vers
): macOS 12.5uname -sr
): Darwin 21.6.0uname -m
): x86_6Good practices to consider