Is there any way to grab the circulating supply through the RPC?
We're conceptualizing a system that automatically freezes deposits based on network variables. Supply going up substantially faster than expected is probably caused by some bug (such as bitcoin's duplicate input bug)
Might also be a nice thing for the explorer to show
not sure what sort of clown college you think this is, but ok
so that would look like sum of utxo?
Lol clown college sounds like a great horror movie theme
Yea. Probably a running total of utxos
clown college: you won't be laughing soon
The trouble with tracking the utxo sum is that any code that did it incrementally per block would be perhaps subject to the same hypothetical bug so the safe thing to do is enumerate and sum the values of the entire db
which wouldn't be too bad, but not something you want to do on the fly
I could make a tool that does that on an existing database
or actually,
could do it via queries to an existing node
since the get utxo code will already support that use case just fine
We would ideally check it every block or every few minutes - so performance could be an issue as the blockchain grows. AFAIK the bugs we've dodged would have been caught by the incremental counter - VEO's integer underflow, bitcoin's dupe input. I suppose most ideal would be to have both and run the full sum occasionally
actually, you can just run the richlist program and sum the outputs
nevermind, this was written by an insane person
it is actually reading each block for some insane reason
Should get sum of unspent, number of outputs, number of addresses, etc. Should also replace that damn fool richlist implementation.
@Eric https://github.com/snowblossomcoin/snowblossom/issues/127 Should get sum of unspent, number of outputs, number of addresses, etc. Should also replace that damn fool richlist implementation.
Cheers, thanks
@Eric if anyone's doing something like that, it should be very easy to spot.
If someone is awake and paying attention
sounds like they are trying to build something to catch it if those things aren't true
I was actually doing that myself last night.