Questions tagged [source-code]
The source-code tag has no usage guidance.
71
questions
0
votes
0
answers
37
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
2
answers
55
views
Are crypto servers updated with code in transactions?
If the code used to run your crypto coin node needs updating, how is it done? Is the code sent as a patch as a transaction? Does the node code know how to receive and apply this patch? Or does ...
2
votes
1
answer
275
views
Issue listing regtest wallets
Questions:
Should it be assumed if you're testing with bitcoincore you should always have a separate datadir per version/bin?
Based on weirdness below, (not being able to list regtest wallets), does ...
2
votes
1
answer
86
views
What is CCoinsCacheEntry in the Bitcoin Core?
CCoinsCacheEntry is implemented here.
/**
* A Coin in one level of the coins database caching hierarchy.
*
* A coin can either be:
* - unspent or spent (in which case the Coin object will be ...
1
vote
1
answer
452
views
Early version of bitcoin and poker
How can we locate the code for an online poker game in version 0.1.0 of Bitcoin, which multiple articles on the internet claim was included by Satoshi Nakamoto? Furthermore, how can we verify that ...
3
votes
1
answer
119
views
ThreadOpenConnections and break versus continue: why the one versus the other?
In the inner loop of ThreadOpenConnections() in net.cpp sometimes there is a break to the outer loop and sometimes a continue. This is my understanding of the decision between break and continue in ...
2
votes
1
answer
154
views
Why does the bitcoin client send transaction's txid and wtxid in 'inv' process?
I'm reading the source code of Bitcoin Core, and I found that in the inv process, nodes will relay both txid and wtxid to other peer nodes. I have the following questions:
Why does the node send ...
1
vote
2
answers
139
views
What is the backup plan for the social organization surrounding Core development?
The question of GitHub alternatives has been raised and closed. Alternative, backup repos exist.
That said, I have not seen any contingencies for planning the social move to those repos and organizing ...
2
votes
1
answer
251
views
Why Bitcoin Core source code use #include bracket syntax instead of quote syntax
Why Bitcoin Core source code use #include <rpc/wallet.h> bracket syntax instead of #include "rpc/wallet.h" quote syntax. Can intellisense C++ editors understand this option and not ...
2
votes
2
answers
221
views
How can I configure Vim to work with bitcoin core C++ source code and have Intellisense like functionality?
I use Vim for editing, I installed Conquer Of Completion (COC) plugin and now I can edit C++ projects with Vim taking advantage of syntax highlighting, autocompletion, inline error messages, etc. But ...
0
votes
1
answer
59
views
What is the FeeReason enumeration in the Bitcoin Core?
There is enumeration called FeeReason. What is it? What is its use cases?
/* Enumeration of reason for returned fee estimate */
enum class FeeReason {
NONE,
HALF_ESTIMATE,
FULL_ESTIMATE,
...
1
vote
1
answer
45
views
what is the mapBlocksUnknownParent variable?
I was reviewing this pull request. It was an attempt to remove the global variable mapBlocksUnknownParent. I found the definition here. In the CChainState::LoadExternalBlockFile function.
// Map ...
6
votes
2
answers
791
views
What is the purpose of indexing the mempool by these five criteria?
In the bitcoin source code in txmempool.h, a comment says that unconfirmed transactions are indexed by five criteria:
* mapTx is a boost::multi_index that sorts the mempool on 5 criteria:
* - ...
3
votes
1
answer
201
views
where does the main.cpp moved to in recent versions?
I was reading this article about bitcoin-core. It is an explanation of bitcoin-core source code version 0.3, and it described a file named main.cpp. In the recent versions this file does not exist (or ...
2
votes
2
answers
369
views
Does bitcoind validate every block for every time it starts?
When running bitcoind, it starts downloading the blockchain and validate every block in a row. It stores the blockchain in the ~/.bitcoin/blocks directory. And when we break daemon and restart it, ...