Questions tagged [bitcoincore-development]

This tag should be used for questions regarding Bitcoin Core development. This includes questions about the source code and development of Bitcoin Core.

Filter by
Sorted by
Tagged with
6
votes
1answer
239 views

Which block() method does what?

In the main.cpp bitcoin code, there are a few different functions for managing blocks. ProcessNewBlock() AcceptBlock() CheckBlock() ConnectBlock() DisconnectBlock() What is a good summary for what ...
4
votes
1answer
575 views

How to specify ECDSA nonce used in bitcoin signing code?

Below is the CECKey::Sign() code (v0.9.3). bool Sign(const uint256 &hash, std::vector<unsigned char>& vchSig) { vchSig.clear(); ECDSA_SIG *sig = ECDSA_do_sign((unsigned char*)&...
2
votes
1answer
126 views

Why does the bitcoin mining code have the same if statement twice?

From the v0.9.3 miner.cpp source (https://github.com/bitcoin/bitcoin/blob/v0.9.3/src/miner.cpp#L598-L604): if (GetTimeMillis() - nHPSTimerStart > 4000) { static CCriticalSection cs; { ...
1
vote
1answer
431 views

Explain this comment on nNonce from the bitcoin miner.cpp source?

This comment is in the 0.9.3 miner.cpp bitcoin source, right above the ScanHash_CryptoPP definition. // // ScanHash scans nonces looking for a hash with at least some zero bits. // It operates on ...
9
votes
1answer
4k views

Why does the default miner implementation use pay-to-pubkey?

Looking at the v0.9.3 source in miner.cpp: CBlockTemplate* CreateNewBlockWithKey(CReserveKey& reservekey) { CPubKey pubkey; if (!reservekey.GetReservedKey(pubkey)) return NULL; ...
3
votes
1answer
242 views

Can there be more than one result of decoding a raw transaction?

I was looking in rpcrawtransaction.cpp and came across the signrawtransaction rpc method. While reading through this method, I thought these lines seemed strange: vector<CTransaction> ...
2
votes
2answers
132 views

Who specified the Bitcoin protocol?

I went through the original paper by Satoshi, which outlines the Bitcoin protocol. However, the paper is a high level overview of Bitcoin, and does not specify important parts of the protocol. Who ...
1
vote
1answer
170 views

Which part of code (function) handles received transactions?

I was trying to understand the flow of control between functions (operations performed and their order) when a transaction is received.
5
votes
1answer
627 views

Is there a class or sequence diagram for BitcoinCore?

I'm looking at the code located at https://github.com/bitcoin/bitcoin/tree/master/src Does anyone have a basic diagram of what calls what, just a sequence chart of how all the classes piece together ...
0
votes
2answers
305 views

Bitcoin Transaction within source code

I am messing with the Bitcoin sourcecode. Normally when you want to send some BTC you type : ./bitcoind sendtoaddress 1ADRESSS 0.001 How would you do this in the sourcecode on a recurring basis? ...
0
votes
1answer
99 views

Where is the code that receives blocks that miners have just solved

I was just looking through the Bitcoin code but since I am relatively new to C++ I was wondering, if anybody could tell me where the code responsible for receiving blocks that have just been mined by ...
5
votes
1answer
170 views

Where is the code that sends generated Bitcoins from mining to the wallet?

I was just looking through the Bitcoin code but since I am relatively new to C++ I was wondering, if anybody could tell me where the code responsible for sending coins generated through mining to the ...
0
votes
1answer
292 views

No submitblock in altcoin?

I'm trying to figure out how I'd submit a block in many alt-coins. I originally found this issue in bbqcoin but have since found it in many others. I have bbqcoin (and others) installed from gihub ...
2
votes
1answer
78 views

Where is the code that specifies when a block is released?

I'm not sure how this exactly works. So roughly every 10 mins a block is released to the network. How is this done? Does my bitcoin client signal this? Would that mean in theory if there was just one ...
7
votes
1answer
2k views

Why does Github say that the Bitcoin project is 74% TypeScript?

For the Bitcoin project on Github clicking "Show language statistics" shows that the source code is almost 74% TypeScript. Why is this so when ostensibly Bitcoin is written almost entirely in C++. ...
8
votes
1answer
1k views

Where exactly is the “off-by-one” difficulty bug?

I read through How is difficulty calculated? and want to understand where the "off-by-one" bug is in calculating difficulty. Here is a Matlab snipet I wrote to calculate difficulty. What are the ...
2
votes
0answers
89 views

Debug bitcoin protocol implementation

When I'm trying to send a "VERSION" message with my custom bitcoin client, I get: Warning: Local node 127.0.0.1:56425 misbehaving (delta: 1)! What does it mean? How do I know what exactly is wrong ...
3
votes
1answer
78 views

How the Bitcoin community will handle attacks on a Client's code?

I have some thoughts about the following scenario. The brightest future. The Bitcoin becomes a very popular and liquid currency all over the world. Some serious financial or political parties may ...
10
votes
1answer
150 views

How can vulnerabilites in bitcoin be responsibly reported?

I am wondering if someone discovers a bug/exploit in Bitcoin software or protocol, who should it be disclosed to? Who is the authority? What would happen if the bug went public? Has it occurred in the ...
2
votes
1answer
159 views

Is there a bitcoin source, fork available that does not include a GUI?

I would like to try to download and compile a barebones variation of the Bitcoin daemon. Specifically, I'd would prefer to not have a copy of the code with any GUI implementation. Does such a ...
7
votes
1answer
2k views

Where, in the code, in the Satoshi client is 21 million cap implemented?

Which fragment of the Satoshi client is verifying if announced block has a valid reward? I mean, we now live in the 25 BTC reward period. I guess client after receiving a newly minted block, does ...
9
votes
3answers
1k views

Do “the official bitcoin developers” control Bitcoin?

Is there one person or organization that controls Bitcoin? What if Gavin Andresen, the lead developer, or Bitcoin Foundation, "the official bitcoin organization", decide to change something? What if ...
12
votes
4answers
3k views

Who controls the Bitcoin software?

Is there anything comparable to a "board of directors" for Bitcoin or is the software on complete cruise-control?

1 3 4 5 6 7