diff --git a/contrib/README.md b/contrib/README.md index 916e4d094..ed2c7408b 100644 --- a/contrib/README.md +++ b/contrib/README.md @@ -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 diff --git a/doc/release-process.md b/doc/release-process.md index adc88c02c..715ff2e0f 100644 --- a/doc/release-process.md +++ b/doc/release-process.md @@ -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 diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 23d7df788..db3a216da 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -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")) diff --git a/util/README.md b/util/README.md index aadb9d08d..efc52a830 100644 --- a/util/README.md +++ b/util/README.md @@ -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 diff --git a/contrib/checkpoints.pl b/util/checkpoints.pl similarity index 96% rename from contrib/checkpoints.pl rename to util/checkpoints.pl index ec0dd919d..5b49c2b3e 100755 --- a/contrib/checkpoints.pl +++ b/util/checkpoints.pl @@ -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++;