mirror of
https://github.com/Retropex/custom-ocean.xyz-dashboard.git
synced 2025-05-12 03:00:45 +02:00

Updated the `reset_chart_data` function to include a new `network_fee` parameter in the `MiningDashboardService`. Modified `config.json` to add a default `network_fee` key. Enhanced `load_config` in `config.py` to handle the new parameter. Updated the `MiningDashboardService` constructor and `fetch_metrics` method to utilize the `network_fee` in calculations. Added a new input field for `network_fee` in `boot.html` and updated related JavaScript functions to manage this input. Improved the "Use Defaults" button functionality to reset the `network_fee` to its default value.
8 lines
152 B
JSON
8 lines
152 B
JSON
{
|
|
"power_cost": 0.0,
|
|
"power_usage": 0.0,
|
|
"wallet": "yourwallethere",
|
|
"timezone": "America/Los_Angeles",
|
|
"network_fee": 0.0
|
|
}
|