LBRYFoundation / lbry-wunderbot

https://chat.lbry.io
MIT License
23 stars 41 forks source link

Use explorer api for supply calls #110

Closed tzarebczan closed 6 years ago

tzarebczan commented 6 years ago

We should use this for LBC supply calls. Would it be possible to get it scheduled or not allow it to run the api each time stats is called?

https://explorer.lbry.io/api/v1/supply

MSFTserver commented 6 years ago

its not even loading for me right now....

MSFTserver commented 6 years ago

never mind it just takes like atleast a minute for the link to reply you sure you want that

tzarebczan commented 6 years ago

Yea, that's why I don't want it run often.. A schedule would be best.

MSFTserver commented 6 years ago

image this is awefully long for an API to reply

MSFTserver commented 6 years ago

yea i havent learned how to use cache in javascript yet so @filipnyquist or @nikooo777 would have to implement that

tzarebczan commented 6 years ago

It runs a lbrycrd command which adds up all the unspent outputs to get the total supply.

MSFTserver commented 6 years ago

well if its tied to lbrycrd isn't tipbot or claimbot where ever they run have that running we could transfer it there and use the same method but a lot faster not 1 minute response times like trying to call the endpoint

Coolguy3289 commented 6 years ago

@tzarebczan Is this still something that is being pursued? Does anyone have an answer to @MSFTserver's question?

tzarebczan commented 6 years ago

Now that CMC is using that endpoint, we don't need to do this anymore.