Comments (2)
As you may have already deduced, the burned coins option under the wealth_distribution
option only affects the totals on the top 100/richlist page, it was never designed to remove coins from the coin supply and would require another layer of complexity to achieve.
For my own coin project, I figured it would be confusing to see a different supply value in the wallet vs the explorer so I chose to subtract the burned coins from the total supply in the blockchain itself. I'm not sure the best way to remedy that confusion if you were to subtract the burned coins from the supply in the explorer only, maybe by displaying 2 supply values? Real supply and Burned supply? I personally don't like it, but maybe there will be some better ideas.
As far as getting the explorer to display the burned supply, I can think of a couple different ways to accomplish that:
-
Create a new function that will lookup all burned coin addresses in the mongo addresses database and return the sum of all burned address balances. This function would need to be called after every block sync to subtract that value from the running supply value.
-
An alternate option might be to add a new if statement somewhere in the sync code that will check if the current tx being synced includes a burned address on the sending or receiving end and save the amount going in or out from that address to a running total. At the end of the sync, add that total to a new burned coin total in the stats database. Then, every time the current supply is to be shown, it will return the real supply minus burned coins. This option would either require a resync or probably better to create a new function that can be run on demand to get the sum of all burned coin balances and save it to the database.
Also, as far as burned coins being spent through some kind of hack, that would be quite the feat given that burn addresses should be provably unspendable using a special wallet address like the generic-unspendable script generates where the private key for the burn address is impossible to generate and therefore can never be spent.
from eiquidus.
Please note that this request has been added to Exor's public task list and development will begin as soon as the funding goal has been met.
View more details here: https://exor.io/task?id=4&tid=716efb051f527992b5994ed4a3801b35b35825f2
from eiquidus.
Related Issues (20)
- cannot set headers after they are sent? HOT 3
- Help to add a new exchange file in the system HOT 2
- [Feature Request] Extending the current api explorer to support light wallets up to trezor codebook v2. HOT 3
- error on running HOT 1
- Coin Supply issue HOT 2
- explorer not executing the /etc/getlasttxs/0 command after loading the main index page HOT 5
- logo does not appear in the market, address tabs HOT 2
- the list of masternodes, lists a maximum of 4388 masternodes HOT 7
- add getalldifficulty for the api for MateableCoin HOT 3
- Call to /api/getdifficulty comes up with error HOT 2
- Explorer shows a line for POS difficulty when it's a POW coin HOT 2
- unspent utxo HOT 2
- RangeError: Maximum call stack size exceeded HOT 21
- API listed local IP address HOT 8
- masternode not showing HOT 1
- Sync issue with coin Social Send HOT 3
- Coin Supply and Masternode info not showing HOT 3
- Saving addresses as base58 vs Bech32 HOT 2
- Syncings by Cron dont work HOT 4
- Transactions are not showing the correct amount
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eiquidus.