Bitcoin Forum
April 25, 2024, 08:26:18 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to set bitcoin checkpointdata parameter in checkpoints.cpp  (Read 142 times)
myapple (OP)
Member
**
Offline Offline

Activity: 100
Merit: 11


View Profile
December 24, 2017, 09:17:43 AM
 #1

In the file checkpoints.cpp there is a parameter called checkpointdata the second parameter is total number of transactions between genesis and last checkpoint
Actually how can I calculate this value?
1714033578
Hero Member
*
Offline Offline

Posts: 1714033578

View Profile Personal Message (Offline)

Ignore
1714033578
Reply with quote  #2

1714033578
Report to moderator
1714033578
Hero Member
*
Offline Offline

Posts: 1714033578

View Profile Personal Message (Offline)

Ignore
1714033578
Reply with quote  #2

1714033578
Report to moderator
1714033578
Hero Member
*
Offline Offline

Posts: 1714033578

View Profile Personal Message (Offline)

Ignore
1714033578
Reply with quote  #2

1714033578
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714033578
Hero Member
*
Offline Offline

Posts: 1714033578

View Profile Personal Message (Offline)

Ignore
1714033578
Reply with quote  #2

1714033578
Report to moderator
1714033578
Hero Member
*
Offline Offline

Posts: 1714033578

View Profile Personal Message (Offline)

Ignore
1714033578
Reply with quote  #2

1714033578
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3374
Merit: 6535


Just writing some code


View Profile WWW
December 26, 2017, 01:41:18 AM
 #2

Use a script which requests from Bitcoin Core each block and count the number of transactions in each block. Keep a running sum until you reach the block you want to checkpoint at.

myapple (OP)
Member
**
Offline Offline

Activity: 100
Merit: 11


View Profile
December 26, 2017, 08:11:14 AM
 #3

mining itself will also be counted?
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3374
Merit: 6535


Just writing some code


View Profile WWW
December 26, 2017, 07:06:32 PM
 #4

mining itself will also be counted?
What do you mean by "mining itself"? Mining is not involved in this.

myapple (OP)
Member
**
Offline Offline

Activity: 100
Merit: 11


View Profile
December 27, 2017, 02:41:27 AM
 #5

Ah
The number of transactions not includes mining
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!