Move checkpoints.pl to util/
This commit is contained in:
@@ -8,7 +8,6 @@ Please fix bugs and report things you find.
|
|||||||
|
|
||||||
## Hush Tools
|
## Hush Tools
|
||||||
|
|
||||||
checkpoints.pl - generate checkpoint data for main.cpp
|
|
||||||
block\_time.pl - estimate when a Hush block will happen
|
block\_time.pl - estimate when a Hush block will happen
|
||||||
|
|
||||||
## Wallet Tools
|
## Wallet Tools
|
||||||
|
|||||||
@@ -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
|
- 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
|
- 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
|
- 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
|
- 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
|
- 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
|
- 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
|
||||||
|
|||||||
@@ -557,14 +557,14 @@ void *chainparams_commandline() {
|
|||||||
|
|
||||||
pCurrentParams->consensus.vUpgrades[Consensus::UPGRADE_SAPLING].nActivationHeight = ASSETCHAINS_SAPLING;
|
pCurrentParams->consensus.vUpgrades[Consensus::UPGRADE_SAPLING].nActivationHeight = ASSETCHAINS_SAPLING;
|
||||||
pCurrentParams->consensus.vUpgrades[Consensus::UPGRADE_OVERWINTER].nActivationHeight = ASSETCHAINS_OVERWINTER;
|
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) {
|
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)
|
checkpointData = //(Checkpoints::CCheckpointData)
|
||||||
{
|
{
|
||||||
boost::assign::map_list_of
|
boost::assign::map_list_of
|
||||||
(0, pCurrentParams->consensus.hashGenesisBlock)
|
(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"))
|
(5000, uint256S("0x000000018f8543066baa9c5f83e981749da4cb625fad02c187b4a9c4693ebd60"))
|
||||||
(10000, uint256S("0x00000002d177d1cbfeaf7c27a2a32766ea9063d222cbcc7623dc08355b07a3ad"))
|
(10000, uint256S("0x00000002d177d1cbfeaf7c27a2a32766ea9063d222cbcc7623dc08355b07a3ad"))
|
||||||
(15000, uint256S("0x000000008dbfbd5d5e27d819bf2989c5658c3494608bfa1320ad0b090660cd44"))
|
(15000, uint256S("0x000000008dbfbd5d5e27d819bf2989c5658c3494608bfa1320ad0b090660cd44"))
|
||||||
|
|||||||
@@ -2,3 +2,7 @@
|
|||||||
|
|
||||||
Scripts in this directory are used by Hush developers in the process of development
|
Scripts in this directory are used by Hush developers in the process of development
|
||||||
or in releasing a new version of Hush.
|
or in releasing a new version of Hush.
|
||||||
|
|
||||||
|
## Utilities
|
||||||
|
|
||||||
|
checkpoints.pl - generate checkpoint data for chainparams.cpp
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ my $last = 0;
|
|||||||
my $now = time();
|
my $now = time();
|
||||||
chomp($blocks);
|
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) {
|
while (1) {
|
||||||
$count++;
|
$count++;
|
||||||
Reference in New Issue
Block a user