Open TimeTravelersHackedMe opened 6 years ago
Very nice poolUI, I like it 👍👍👍. Great job ! For api and databse, I’m noob and can’t help.
Bump. Anyone know if the Payments/Blocks page's historical data gets updated?
Typically, it is done by calling the pool's api to /pool/payments?page=#&limit=#
Example, page=1&limit=100 https://api.aeonminingpool.com/api/pool/payments?page=1&limit=100
Results in last 100 payments on page 1. Same method with blocks.
Make sense?
Yeah... I know that... I'm wondering if the historical data is updated. I want to know if I can cache older values so the database doesn't have to query anything if it is already cached.
The values of previous payments and blocks should never change.
I noticed that this software bashes the server with a lot of API calls and I've also noticed some sites experiencing downtime on their front end (likely because of all the calls). I'm in the process of re-writing an Ionic app to replace PoolUI. Part of the project entails writing another pm2 process that will push data to Firestore. I'd like to have it be as real-time as possible and I'm also trying to avoid making unnecessary pushes to Firestore. My question is about the Blocks and Payment page.. Do the entries update after they're posted? In other words, will the blocks or payments on the fifth page in pagination change in data? If not, I don't have to cycle through the whole list and I'll be able to update Firestore at smaller intervals.
Here's the TypeScript I have so far. This code is working, just posting it here just in case anyone else is interested in this:
The historyCount static variable is used so I can index the network/pool hash rates while still updating them regularly. This is used so I can display charts for them on the front end without pulling a ridiculous amount of data. The pool stats are updating every 30 seconds (along with network stats) and the pool config is updating every 5 minutes in this example.
Also, are there any features you're looking to bring to the front end? I'm a professional front end engineer who teaches at a university as well. I'm currently re-writing PoolUI in Ionic so we're using Angular 5 and can port the interface to Android/iOS apps/(Electron with a built-in miner). I'm also interested in adding a browser miner but I haven't done too much research on that yet.