Questions tagged [source-code]
The source-code tag has no usage guidance.
12 questions with no upvoted or accepted answers
2
votes
0
answers
211
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
0
answers
274
views
How to reset bitcoin testnet / signet / regtest in newest bitcoin core
The testnet data directory is not ~/.bitcoin but rather ~/.bitcoin/testnet3. ~/.bitcoin holds the data for the main Bitcoin blockchain.
the files are still there but deleting them wont work anymore.
...
1
vote
1
answer
311
views
How to improve bitcoin-qt when downloading blockchain? (very technical, dev views appreciated)
GitHub suggested discussing here before bothering developers with an issue.
So be it! :)
I'm running Bitcoin Core Version v0.20.1 and Linux Mint 18.3 on crappy old hardware. Pruning blockchain to 2 G ...
1
vote
0
answers
96
views
How can I add the MySQL C++ connector to Bitcoin Makefile?
I'm trying to add a custom function to my bitcoin client that queries a mysql db. I followed this guide for the basic: https://technology.finra.org/code/compile-run-customize-your-own-bitcoin-client....
1
vote
0
answers
33
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
0
answers
98
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
0
answers
43
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
0
answers
39
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
0
answers
72
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
0
answers
110
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
0
answers
59
views
What is wrong with this JSON-RPC? (via BTC.com)
The subscribe message works. But the authorization does not. I was wondering why I cannot get this to work. The expected outcome is to have a miner that is logged in and has no errors in authorization,...
0
votes
1
answer
582
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? ...