Bitcoin Forum
May 12, 2024, 10:00:08 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: React Native XMRig for Android (Open Source) (ARMv7, ARMv8, x86, x86_64)  (Read 98 times)
late-night (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
May 10, 2021, 10:47:46 PM
Last edit: May 15, 2021, 01:40:40 PM by late-night
 #1

React Native App that uses an optimized version of XMRig to run on mobile. Using MoneroOcean auto-switching algo to mine the most profitable coin.

The App displays stats from the miner process & pulls personal stats from MoneroOcean pool.

Features:
* Benchmark different coins & algos to create personal most profit algos to mine
* Miner tab stats: Miner state, Algo, Hashrate histogram, Hashrate (last 10sec, last 60sec, last 15min & max hashrate), Accepted shares, Current Difficult, Avg time for share, Threads, Free mem, Res. mem.
* Pool tab stats: Raw hashrate histogram, Payout hashrate histogram, Num of shares, Total Hashes, Total due balance, Total paid, Number of transactions.
* Log tab: Real-Time miner output (stdout) log.
* Other tab: CPU Brand, Arch, AES, AVX2, 64Bit, MSR, Backend & Assembly.
* Settings tab: Update wallet address with validation, History of address with the option to reuse old address.

You must have Moneo (XMR) Wallet address to start mining

Google Play
https://play.google.com/store/apps/details?id=com.reactnativexmrig

Source Code:
https://github.com/garrylachman/react-native-xmrig
1715551208
Hero Member
*
Offline Offline

Posts: 1715551208

View Profile Personal Message (Offline)

Ignore
1715551208
Reply with quote  #2

1715551208
Report to moderator
"Governments are good at cutting off the heads of a centrally controlled networks like Napster, but pure P2P networks like Gnutella and Tor seem to be holding their own." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715551208
Hero Member
*
Offline Offline

Posts: 1715551208

View Profile Personal Message (Offline)

Ignore
1715551208
Reply with quote  #2

1715551208
Report to moderator
1715551208
Hero Member
*
Offline Offline

Posts: 1715551208

View Profile Personal Message (Offline)

Ignore
1715551208
Reply with quote  #2

1715551208
Report to moderator
1715551208
Hero Member
*
Offline Offline

Posts: 1715551208

View Profile Personal Message (Offline)

Ignore
1715551208
Reply with quote  #2

1715551208
Report to moderator
late-night (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
May 15, 2021, 01:40:02 PM
 #2

A new version uploaded, fixed some issues.
late-night (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
July 05, 2021, 11:13:22 PM
 #3

Lot of updates (13 versions) from last time i update the post...

Some of the changes:
Themes - now can switch between dark & light mode
* Theme Mode - Advanced Mode & Simple Young
* Threads details - per thread Intensity, Affinity, Av & Thread Hashrate
* Benchmarking warning - data will be available after benchmarking complete
* New XMRig Version
* Lazy Loading - Implements React Suspense
* Better Internal Communication (process -> thread -> react)
* Refactor of Mining service + AIDL
* Refactor of Mining screens
* "react-native-sparkline" chart library replaced with "Victory Charts"
* All "session" data moved to dedicated context & all related components has been refactored/re-arranged.
* Keep awake while mining

Bugfixes:
* Bugfix: current wallet is not populated to input in settings
* Bugfix: BindService bugfix
* Bugfix: UI Laggs while mining (still lagging but better - mining is havey process)
* Critical bugfix: Crash when new wallet added.


Source code @ our GitHub:
https://github.com/garrylachman/react-native-xmrig

Google Play:
https://play.google.com/store/apps/details?id=com.reactnativexmrig

late-night (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
August 09, 2021, 02:01:19 AM
 #4

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.reactnativexmrig

I remind you - Its Open Source:

https://github.com/garrylachman/react-native-xmrig
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!