React Native XMRig - New version updates (1.0.22)
Hi,
A new version is released with a major change that first comes to fix a bug and create an option for more features.
What was the issue?
In prev version the mining total count calculation was done by updating the state in React Native (frontend), its worked good but when the app was in background (the xmrig works as service) - the mining worked but the stats was not updated. Its reflect on the reward calculation, if the app was in background the mining time was not counted. The bug was discovered by Cigal33 (
https://github.com/garrylachman/react-native-xmrig/issues/4)
How its has been fixed?
I move the calculation of mining time to java native as part of the service, to store the data I create a local SQLite DB, and every minute a row is inserted with a timestamp, session-id (UUID generated every new start), algo & hash rate. Its solve the issue with the uncounted mining time and I use the DB (Mining History) to expose a new screen with Mining Sessions History datatable, hashrate by session chart & mining time by session chart.
Now it's only a basic implementation and many options can be added like date range, different types of grouping (by algo, by date, by total time) And more data can be added to the table (any data XMRig provides - and it provides a lot of data in the API).
I will be happy to receive your feedback, What do you think about this screen, what do you think must be added or nice to have.
I just roll out the App on Google Play so it can take some time to see the new version (max few hours)
Google Play:
https://play.google.com/store/apps/details?id=com.reactnativexmrigI remind you - Its Open Source:
https://github.com/garrylachman/react-native-xmrig