P2Pool Booster: PHP & Javascript

Cancelado Publicado hace 5 años Pagado a la entrega
Cancelado Pagado a la entrega

I need PHP/Javascript code that will read or calculate the necessary data and perform the following actions:

Get list of local active miners

For each active miner loop

Get count of active miner shares last 72 hours

Get active miner time online

If boosted = 0 and active miner time online > 72 hours and active miner shares last 72 hours => 3 and last boosted -> 4320 minutes

Then

Add miner address to boost pool with priority time set to miners hash rate last 72 hours * 0.1 / boost pool average hash rate last 72 hours * 432 minutes via AwesomeMiner API

Set boosted = 1

Set time left = miner time online / 60 minutes

Set last boosted = 0

Reset miners boost pool

Endif

Time left = time left - 1 minute

Last boosted - last boosted + 1 minute

If boosted - 1 and time left <= 0

Then

Remove miner address from boost pool

Reset miners boost pool

Set last boosted = 0

Endif

Display boosted status, time left, and boosted hash rate columns in existing table

Next loop

I can do simple modification of existing PHP and Javascript code, but need assistance reading data into variables and/or arrays. The code will be integrated with the following wesbite:

[login to view URL]

Files attached for reference.

HTML JavaScript PHP

Nº del proyecto: #18253940

Sobre el proyecto

1 propuesta Proyecto remoto Activo hace 5 años