I am not a C++ pro. I read C++ as a part of my undergrad school course. I am very passionate about the future currency i.e. Bitcoin.
But I don't understand the source code structure. How to read the source code? As I already told I am have very…
What made the core developers choose C++ as the main programming language for implementing bitcoin? Was this because of their personal preference? Or another reason?
I would like to send transactions with messages as described in the wiki. In Transaction with slightly changed script is never relayed, someone answered that non-standard transactions are not relaid by the client. I was wondering if this will affect…
I'm doing some deeper research into historical consensus changes and it seems like most folks consider the addition of the OP_NOP codes to be a hard fork. Here's the diff for their addition:…
I looked up log2_work inside main.cpp and I can't follow its calculation by log(chainActive.Tip()->nChainWork.getdouble())/log(2.0).
a) What is -> explicitely indicating? (I'm at basic level of C++)
b) And what is log2_work exactly saying? Does it…
It's part of the developer notes in the documentation of Bitcoin Core:
Class names, function names, and method names are UpperCamelCase
(PascalCase). Do not prefix class names with C. See Internal interface
naming style for an exception to this…
I can't find the information on which C++ version is being currently used in bitcoin core project?
Is it decided for future releases somehow? How does the situation looks now?
The only thing I could find was Pieter Wuille's comment:
Bitcoin Core is…
Can Bitcoin Core be rewritten in another language, let's say Rust, and could such an implementation supplant the current one in C++ without the users of Bitcoin experiencing some sort of reset/lost of funds?
Languages come and go and I was thinking…
As I know, standard ECDSA digital signature algorithm returns two values (according to this article or Wikipedia), but transaction push services or APIs, like this one, require one string as a signature. Can anyone explain, what is that string, and…
Does LOCK(cs_main) pause and branach the program in order to do some necessary job before going on?
I'm trying to publish blocks reactively (as a selfish miner) upon receipt of inventory message from pfrom and react to it after *pfrom* catches up…
I know that bitcoind is written in C++, but I cannot figure out how to use its API within my program. I have been using a Python wrapper effectively, but I need another process running that is as quick as possible. Is there a library somewhere for…
Is there is reason why Bitcoin uses signed instead of unsigned integers for amounts? I can't imagine a scenario where negative amounts could come up. Was it simply something Satoshi implemented for some future use this way and now we are stuck with…
I am trying to compile a code in C++ from the Book "Mastering Bitcoin" by Antonopoulos (page 69).
I am new to all of this, including C++, python, etc. I see it as a way of doing something interesting and alongside it learning a bit about different…
I have forked PIVX and generated new genesis block hash, merkle root and nonce, and changed the rewards parameters.
It compiles fine and the daemon starts, I have even got 2 nodes connected, but attempting to mine the first block with setgenerate…