Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 24556

Source code and development of Bitcoin Core, the reference implementation of Bitcoin.

4 votes
1 answer
470 views

What is the function of LOCK(cs_main)?

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 …
Aliakbar Ahmadi's user avatar
0 votes
2 answers
237 views

Naming Convention In Bitcoin Source Code

Is there specific reference for naming conventions in Bitcoin Core source code? I see regularity in class naming with prefix "C" (Chain, CInv etc.) or pointer naming with "p" (pprev, pnode etc. ) and …
Aliakbar Ahmadi's user avatar
3 votes
1 answer
238 views

What is "trickling" in terms of bitcoin?

In the Bitcoin (0.10.0) source code I'm coming across the term "trickle". Could someone please give short but accurate explanations on following instances and tell what they're used for? bool fSendT …
Aliakbar Ahmadi's user avatar
0 votes
1 answer
265 views

Call function for block n on blockchain

I've been going through main.cpp in order to roughly find out which function calls the best block and I found out depending on situation there are several similar-sounding function names and code extr …
Aliakbar Ahmadi's user avatar
6 votes
1 answer
2k views

Parameters in UpdateTip - calculation of log2_work

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++) …
Aliakbar Ahmadi's user avatar