From c9af7810367edd3b26ebbb18e32e6135b279ed44 Mon Sep 17 00:00:00 2001
From: UdjinM6 <UdjinM6@users.noreply.github.com>
Date: Fri, 13 Mar 2026 19:59:47 +0300
Subject: [PATCH] refactor: rename bitcoin-util manpage and test references to
 dash-util

Rename bitcoin-util.1 placeholder to dash-util.1 with regenerated
content for v23.1.2. Update Makefile.am, test config, and test
framework to use dash-util naming consistently. The original
bitcoin-util references were missed during the backport in #7054.
---
 doc/man/Makefile.am                           |  2 +-
 doc/man/bitcoin-util.1                        |  5 --
 doc/man/dash-util.1                           | 50 +++++++++++++++++++
 test/config.ini.in                            |  2 +-
 .../test_framework/test_framework.py          |  8 +--
 5 files changed, 56 insertions(+), 11 deletions(-)
 delete mode 100644 doc/man/bitcoin-util.1
 create mode 100644 doc/man/dash-util.1

diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am
index 80d7ff288638..cd8f0189058e 100644
--- a/doc/man/Makefile.am
+++ b/doc/man/Makefile.am
@@ -17,7 +17,7 @@ if BUILD_BITCOIN_TX
 endif
 
 if BUILD_BITCOIN_UTIL
-  dist_man1_MANS+=bitcoin-util.1
+  dist_man1_MANS+=dash-util.1
 endif
 
 if ENABLE_WALLET
diff --git a/doc/man/bitcoin-util.1 b/doc/man/bitcoin-util.1
deleted file mode 100644
index 008a6c24c2f3..000000000000
--- a/doc/man/bitcoin-util.1
+++ /dev/null
@@ -1,5 +0,0 @@
-.TH DASH-UTIL "1"
-.SH NAME
-dash-util \- manual page for dash-util
-
-This is a placeholder file. Please follow the instructions in \fIcontrib/devtools/README.md\fR to generate the manual pages after a release.
diff --git a/doc/man/dash-util.1 b/doc/man/dash-util.1
new file mode 100644
index 000000000000..239e3896be7e
--- /dev/null
+++ b/doc/man/dash-util.1
@@ -0,0 +1,50 @@
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.49.3.
+.TH DASH-UTIL "1" "March 2026" "dash-util v23.1.2" "User Commands"
+.SH NAME
+dash-util \- manual page for dash-util v23.1.2
+.SH SYNOPSIS
+.B dash-util
+[\fI\,options\/\fR] [\fI\,commands\/\fR]  \fI\,Do stuff\/\fR
+.SH DESCRIPTION
+Dash Core dash\-util utility version v23.1.2
+.SH OPTIONS
+.HP
+\-?
+.IP
+Print this help message and exit
+.HP
+\fB\-version\fR
+.IP
+Print version and exit
+.PP
+Chain selection options:
+.HP
+\fB\-chain=\fR<chain>
+.IP
+Use the chain <chain> (default: main). Allowed values: main, test,
+devnet, regtest
+.HP
+\fB\-devnet=\fR<name>
+.IP
+Use devnet chain with provided name
+.HP
+\fB\-testnet\fR
+.IP
+Use the test chain. Equivalent to \fB\-chain\fR=\fI\,test\/\fR
+.PP
+Commands:
+.IP
+grind
+.IP
+Perform proof of work on hex header string
+.SH COPYRIGHT
+Copyright (C) 2014-2026 The Dash Core developers
+Copyright (C) 2009-2026 The Bitcoin Core developers
+
+Please contribute if you find Dash Core useful. Visit <https://dash.org/> for
+further information about the software.
+The source code is available from <https://github.com/dashpay/dash>.
+
+This is experimental software.
+Distributed under the MIT software license, see the accompanying file COPYING
+or <https://opensource.org/licenses/MIT>
diff --git a/test/config.ini.in b/test/config.ini.in
index af3d994c84d3..89d3e6995d41 100644
--- a/test/config.ini.in
+++ b/test/config.ini.in
@@ -19,7 +19,7 @@ RPCAUTH=@abs_top_srcdir@/share/rpcauth/rpcauth.py
 @USE_SQLITE_TRUE@USE_SQLITE=true
 @USE_BDB_TRUE@USE_BDB=true
 @BUILD_BITCOIN_CLI_TRUE@ENABLE_CLI=true
-@BUILD_BITCOIN_UTIL_TRUE@ENABLE_BITCOIN_UTIL=true
+@BUILD_BITCOIN_UTIL_TRUE@ENABLE_UTIL_TOOL=true
 @BUILD_BITCOIN_WALLET_TRUE@ENABLE_WALLET_TOOL=true
 @BUILD_BITCOIND_TRUE@ENABLE_BITCOIND=true
 @ENABLE_FUZZ_TRUE@ENABLE_FUZZ=true
diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py
index 8d6ad3f51550..a10d04f0312d 100755
--- a/test/functional/test_framework/test_framework.py
+++ b/test/functional/test_framework/test_framework.py
@@ -1089,9 +1089,9 @@ def skip_if_no_wallet_tool(self):
             raise SkipTest("dash-wallet has not been compiled")
 
     def skip_if_no_bitcoin_util(self):
-        """Skip the running test if bitcoin-util has not been compiled."""
+        """Skip the running test if dash-util has not been compiled."""
         if not self.is_bitcoin_util_compiled():
-            raise SkipTest("bitcoin-util has not been compiled")
+            raise SkipTest("dash-util has not been compiled")
 
     def skip_if_no_cli(self):
         """Skip the running test if dash-cli has not been compiled."""
@@ -1141,8 +1141,8 @@ def is_wallet_tool_compiled(self):
         return self.config["components"].getboolean("ENABLE_WALLET_TOOL")
 
     def is_bitcoin_util_compiled(self):
-        """Checks whether bitcoin-util was compiled."""
-        return self.config["components"].getboolean("ENABLE_BITCOIN_UTIL")
+        """Checks whether dash-util was compiled."""
+        return self.config["components"].getboolean("ENABLE_UTIL_TOOL")
 
     def is_zmq_compiled(self):
         """Checks whether the zmq module was compiled."""
