Giter Site home page Giter Site logo

Comments (2)

joeuhren avatar joeuhren commented on August 14, 2024

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:

  1. 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.

  2. 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.

joeuhren avatar joeuhren commented on August 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.