Move 15 loose scripts from contrib/ root to contrib/scripts/

Consolidate all standalone utility scripts into contrib/scripts/:
- Perl: avg_blocktime.pl, block_time.pl, gen-zaddrs.pl, sda_checkpoints.pl,
  sdl_checkpoints.pl, hush_block_subsidy_per_halving, hush_halvings,
  hush_scanner, hush_supply, hush_supply_old
- Shell: fresh_clone_compile_and_run.sh, tidy_datadir.sh, dragonx_scanner
- Python: convert_address.py
- BAT: hush-uri.bat

Update path references in contrib/README.md, doc/OLD_WALLETS.md,
doc/relnotes/README.md, and sdl_checkpoints.pl.
This commit is contained in:
dan_s
2026-02-27 12:00:46 -06:00
parent ab6a3a05d7
commit a2647b106f
19 changed files with 8 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ Estimate when a Hush block will happen.
Example: Example:
./contrib/block_time.pl 123456 # Print out datetime of when block height 123456 happens ./contrib/scripts/block_time.pl 123456 # Print out datetime of when block height 123456 happens
## gen-zaddrs.pl ## gen-zaddrs.pl
@@ -22,8 +22,8 @@ Generate zaddrs in bulk, by default 50 at a time. Prints out a zaddr one per lin
Example: Example:
./contrib/gen-zaddrs.pl # generate 50 zaddrs ./contrib/scripts/gen-zaddrs.pl # generate 50 zaddrs
./contrib/gen-zaddrs.pl 500 # generate 500 zaddrs ./contrib/scripts/gen-zaddrs.pl 500 # generate 500 zaddrs
## Wallet Tools ## Wallet Tools

View File

@@ -10,7 +10,7 @@ use warnings;
use strict; use strict;
# call this script like this to generate checkpoints for a HAC such as DragonX: # call this script like this to generate checkpoints for a HAC such as DragonX:
# CLI=./src/dragonx-cli ./contrib/sdl_checkpoints.pl ... # CLI=./src/dragonx-cli ./contrib/scripts/sdl_checkpoints.pl ...
my $hush = $ENV{CLI} || "./src/hush-cli"; my $hush = $ENV{CLI} || "./src/hush-cli";
my $gethash = "$hush getblockhash"; my $gethash = "$hush getblockhash";

View File

@@ -19,7 +19,7 @@ with `t1` and now they begin with `R`.
To see what an old HUSH v2 address looks like on the new chain, this online tool To see what an old HUSH v2 address looks like on the new chain, this online tool
can be used: https://dexstats.info/addressconverter.php can be used: https://dexstats.info/addressconverter.php
or this command line tool: https://git.hush.is/hush/hush3/src/master/contrib/convert_address.py or this command line tool: https://git.hush.is/hush/hush3/src/master/contrib/scripts/convert_address.py
### Using an old wallet.dat ### Using an old wallet.dat

View File

@@ -134,4 +134,4 @@ Docs are split across `doc/`, `contrib/README.md`, and the root.
4. Item **5** — move implementation out of headers 4. Item **5** — move implementation out of headers
5. Item **4** — split monolithic source files 5. Item **4** — split monolithic source files
6. Item **6** — deduplicate cJSON 6. Item **6** — deduplicate cJSON
7. Item **2** — Move shell scripts to `contrib/scripts/` directory 7. Item **2**~~Move shell scripts to `contrib/scripts/` directory~~ Done — moved 15 loose scripts from `contrib/` root into `contrib/scripts/`

View File

@@ -231,8 +231,8 @@ since it contains various bugfixes and improvements that will benefit busy walle
* sendmany RPC will now reject transactions that send to taddrs immediately, instead of them being rejected in mempool * sendmany RPC will now reject transactions that send to taddrs immediately, instead of them being rejected in mempool
* Preliminary support for FreeBSD has been added to the Hush build system * Preliminary support for FreeBSD has been added to the Hush build system
* New contrib scripts: * New contrib scripts:
* `contrib/gen-zaddrs.pl` - Generate zaddrs in bulk, defaults to 50 * `contrib/scripts/gen-zaddrs.pl` - Generate zaddrs in bulk, defaults to 50
* `contrib/sdl_checkpoints.pl` - Generate SDL checkpoints using `getblockmerkletree` * `contrib/scripts/sdl_checkpoints.pl` - Generate SDL checkpoints using `getblockmerkletree`
* ZeroMQ support has been removed from Hush * ZeroMQ support has been removed from Hush
# Hush 3.9.1 "Luciferous Locust" # Hush 3.9.1 "Luciferous Locust"