Questions tagged [source-code]

The tag has no usage guidance.

9 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
142 views

Clarification of some getaddr() function inputs and outputs

In the Bitcoin system to discover new nodes, each node communicates with its peers by sending getaddr() to the peers. Based on the bitcoin implementation: //! the maximum percentage of nodes to ...
1
vote
0answers
23 views

How can I get stealthVersion from bitcoin's source code?

I found that a library called Bitcoinkit use stealthVersion. Network.swift public class Mainnet: Network { ... override var stealthVersion: UInt8 { return 0x2A } ... I tried to ...
1
vote
0answers
52 views

What is the best way to test new consensus protocol?

I wanted to test a new consensus protocol. However, the bitcoin core is a large codebase (>100k lines). Is there any small codebase which is designed to test new consensus protocols and includes only ...
1
vote
0answers
25 views

What is the behavior of the try catch statement in lines 1707-1729 in the ui.cpp in the release 0.1?

In the first public release, ui.cpp has this code on the lines in the subject: void CSendingDialog::OnReply3(CDataStream& vRecv) { int nRet; try { vRecv >> nRet; ...
1
vote
0answers
28 views

Are there any blockchain implementations that are not based on the Bitcoin source code?

I wanted to code up a blockchain from scratch using C++. So I got around to looking at some existing blockchain source code to get some ideas. But all I can find is the Bitcoin source or forks of it. ...
1
vote
0answers
54 views

How to compile newest source and find merkleRoot hash value?

I am following youtube video for make own coin. I did below 4 lines command for compile newest bitcoin source. ./autogen.sh ./configure make sudo make install And run ./mycoind file at src/ ...
1
vote
0answers
80 views

Altering blockinfo to include valid nonce and extraNonce's in the miner_tests

I currently work on upgrading an old cryptocurrency (fork of an old bitcoin version) to the latest of Bitcoin that includes a lot of tests. I currently am stuck with making this test succeed: https://...
0
votes
0answers
22 views

How to build most basic bitcoin-qt from source?

When testing and fiddling with different settings for bitcoin-qt, I have to build bitcoin-qt from scratch from time to time. I am using Ubuntu. Since this is time consuming, I'm wondering what kind of ...
0
votes
1answer
332 views

Bitcoin Source Code genesisOutputScript

I am checking bitcoin source code to learn forking a coin better, in this link https://github.com/bitcoin/bitcoin/blob/master/src/chainparams.cpp Line 52 has scratched my mind, what is that for? ...