How to discover startup flags or command-line options for bitcoind? I'd like to query the Bitcoin daemon (bitcoind) to find out what startup flags (command-line options) were sent to it on startup (or the current state if it has changed, e.g. -server=0/1 changing). For example, I may want to know if -addresstype, -disablewallet, -rescan, or -uacomment=<cmt> or some other flag has been set. Or for Namecoin, it would be very useful to know if -namehistory has been set. Is there an RPC or any other method to find out? Or, to ask the question a different way... src/bitcoind.cpp's bool AppInit(int argc, char* argv[]) method calls ParseParameters(argc, argv);, which is in src/util.cpp. In src/util.cpp we have: map<string, string> mapArgs; static map<string, vector<string> > _mapMultiArgs; const map<string, vector<string> >& mapMultiArgs = _mapMultiArgs; To store flags/options/args. I'd basically just like to get whatever is in tho...
How to use Bitssa to your advantage? Bitssa is a global multi-cryptocurrency exchange that provides you the unique opportunity to trade your cryptocurrency with cryptocurrency and also fiat currency with cryptocurrency. All you need to do is sign up on Bitssa , complete the registration formality, create a wallet address and start trading on the market page. Get wallet free of cost as soon as you signup with bitssa . We are not makers and takers our users decide the price on the exchange. Instant execution of your orders as soon as your price matches. Try Bitssa and you will love it. Also, For better experience, try the Bitssa mobile app. https://ift.tt/2LvrgC7
Is there any python library could be used to decodescript in output For example decode the ScriptPubKey like 4104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac to some data like this { "result": { "asm": "04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f OP_CHECKSIG", "reqSigs": 1, "type": "pubkey", "addresses": [ "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa" ], "p2sh": "3DjjKyU38gSfuVxajV43MUy4vHkg1JVL7T" }, "error": null, "id": null } In general, something like the function in decodescript rpc. http://chainquery.com/bitcoin-api/decodescript https://ift.tt/2PH91gl
Comments
Post a Comment