Git Product home page Git Product logo

Comments (3)

MarcelusCH avatar MarcelusCH commented on August 10, 2024

Hi, yes this can be added in the getblocktemplate result, implemented as following into mining.cpp:

  • Including the key_io library : #include "key_io.h"
  • And getting back the address from the public script (just after the foundersreward pair):
                const CScript & scriptPublicKey = tx.vout[1].scriptPubKey  ;
                std::vector<CTxDestination> addresses;
                txnouttype whichType;
                int nRequired;

                ExtractDestinations(scriptPublicKey, whichType, addresses, nRequired);
                //entry.push_back(Pair("script", GetTxnOutputType(whichType)));
                //entry.push_back(Pair("hex", HexStr(scriptPublicKey.begin(), scriptPublicKey.end())));
                UniValue a(UniValue::VARR);
                for (const CTxDestination& addr : addresses) {a.push_back(EncodeDestination(addr));}
                entry.push_back(Pair("foundersraddress", a));

This can be added in the 2.1.0 update :
Screenshot from 2022-06-05 12-48-53

And here the result :
Screenshot from 2022-06-05 12-58-21

from bitcoinz.

crackfoo avatar crackfoo commented on August 10, 2024

thanks so much! makes it much easier to pickup the founder address changes.

from bitcoinz.

MarcelusCH avatar MarcelusCH commented on August 10, 2024

Added into 2.0.8 release !

from bitcoinz.

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.