Move checkpoints.pl to util/

This commit is contained in:
Jonathan "Duke" Leto
2022-09-19 05:52:53 -07:00
parent 9bf09f353b
commit 84c9b786a7
5 changed files with 9 additions and 6 deletions

View File

@@ -8,7 +8,6 @@ Please fix bugs and report things you find.
## Hush Tools
checkpoints.pl - generate checkpoint data for main.cpp
block\_time.pl - estimate when a Hush block will happen
## Wallet Tools

View File

@@ -63,7 +63,7 @@ Install deps on Linux:
- Make sure to keep the values in configure.ac and src/clientversion.h the same. The variables are prefixed wth an underscore in configure.ac
- Run ./contrib/devtools/gen-manpages.sh, commit + push results
- PROTIP: Man page creation must be done after updating the version number and recompiling and before Debian package creation
- Update checkpoints in src/chainparams.cpp via contrib/checkpoints.pl
- Update checkpoints in src/chainparams.cpp via util/checkpoints.pl
- checkpoints.pl will just generate the data you need, it must be manually copied into the correct place
- Checkpoint are a list of block heights and block hashes that tell a full node the correct block history of the blockchain
- Checkpoints make block verification a bit faster, because nodes can say "is this block a descendant of a checkpoint block" instead of doing full consensus checks, which take more time

View File

@@ -557,14 +557,14 @@ void *chainparams_commandline() {
pCurrentParams->consensus.vUpgrades[Consensus::UPGRADE_SAPLING].nActivationHeight = ASSETCHAINS_SAPLING;
pCurrentParams->consensus.vUpgrades[Consensus::UPGRADE_OVERWINTER].nActivationHeight = ASSETCHAINS_OVERWINTER;
// Generated at 1575831755 via hush3 contrib/checkpoints.pl by Duke Leto
// Generated at 1575831755 via hush3 util/checkpoints.pl by Duke Leto
if (strcmp(SMART_CHAIN_SYMBOL,"HUSH3") == 0) {
// Generated at 1596199654 via hush3 contrib/checkpoints.pl by Duke Leto
// Generated at 1596199654 via hush3 util/checkpoints.pl by Duke Leto
checkpointData = //(Checkpoints::CCheckpointData)
{
boost::assign::map_list_of
(0, pCurrentParams->consensus.hashGenesisBlock)
// Last updated at 1613482505 via hush3 contrib/checkpoints.pl by Duke Leto
// Last updated at 1613482505 via hush3 util/checkpoints.pl by Duke Leto
(5000, uint256S("0x000000018f8543066baa9c5f83e981749da4cb625fad02c187b4a9c4693ebd60"))
(10000, uint256S("0x00000002d177d1cbfeaf7c27a2a32766ea9063d222cbcc7623dc08355b07a3ad"))
(15000, uint256S("0x000000008dbfbd5d5e27d819bf2989c5658c3494608bfa1320ad0b090660cd44"))

View File

@@ -2,3 +2,7 @@
Scripts in this directory are used by Hush developers in the process of development
or in releasing a new version of Hush.
## Utilities
checkpoints.pl - generate checkpoint data for chainparams.cpp

View File

@@ -21,7 +21,7 @@ my $last = 0;
my $now = time();
chomp($blocks);
print "// Generated at $now via hush3 contrib/checkpoints.pl by Duke Leto\n";
print "// Generated at $now via hush3 util/checkpoints.pl by Duke Leto\n";
while (1) {
$count++;