UnamSanctam / UnamWebPanel

MIT License
164 stars 61 forks source link

Web Panel #294

Open DamnCrypt opened 8 months ago

DamnCrypt commented 8 months ago

Is it possible to reset the numbers next to each miner? I have a few miners and its annoying that the one miner has the number 2 next to it and the other miner the number 33. (Note: this happend, because i teseted the miner sometimes on my VM and thats why the numbers have such an high gap between each other)

UnamSanctam commented 8 months ago

There's a special table in the database that keeps track of that which you can change it in or you can replace the database file (unamwebpanel.db) with a fresh one. The reason it works like that is because that's how relational databases are able to link different entries together, the row ID (the number next to each miner) is the primary key that can be used somewhere to always refer to that specific entry. For example, the "Hashrate History" in the database knows which miner it belongs to by having a column that contains the miners row ID, so if the row IDs could be reused then one miners "Hashrate History" could potentially be accidentally connected to some other miner.