MyHush / hush3

Hush: Speak And Transact Freely
https://myhush.org
Other
15 stars 13 forks source link

gettxchainstats improvements #14

Open leto opened 5 years ago

leto commented 5 years ago

gettxchainstats could learn some new tricks to make it even more useful with on-demand chains and give more data:

CHMEXYesterday at 11:02 AM
Is there a way without a DB what I can find out how many blocks per 24 have been created?
For chains with fixxed blocktimes ( I call KMD fixxed at 1440 blocks a day) it's clear but for ondemands assetchains?
jl777cYesterday at 11:07 AM
scan backwards up to 1440 blocks until you find a timestamp one day ago
CHMEXYesterday at 11:25 AM
yes I guess I will have to do it that way... with getchaintxstats BLOCKS a simple 24hour stats for the eco system is possible to do...
dukeletoYesterday at 3:46 PM
@CHMEX maybe i could modify getchaintxstats have a "24hr mode", something to make it better for on-demand chains
CHMEXYesterday at 11:56 PM
Hi @dukeleto 
Thst would be awesome yes also maybe add am extra value fields paymentscount transactionsperseconds paymentsperseconds

This is a new feature that will be upstreamed to KMD.

leto commented 4 years ago

getchaintxstats will be part of our next release