From ea1be3867757274f12ad53e7845f35f9d767c5c7 Mon Sep 17 00:00:00 2001 From: David Gumberg Date: Wed, 7 May 2025 14:09:02 -0700 Subject: [PATCH 01/20] guix: doc: Suggest guix-install.sh --uninstall --- contrib/guix/INSTALL.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/guix/INSTALL.md b/contrib/guix/INSTALL.md index 515d4487d6ec..6320d971951d 100644 --- a/contrib/guix/INSTALL.md +++ b/contrib/guix/INSTALL.md @@ -784,7 +784,9 @@ an irreversible way, you may want to completely purge Guix from your system and start over. 1. Uninstall Guix itself according to the way you installed it (e.g. `sudo apt - purge guix` for Ubuntu packaging, `sudo make uninstall` for a build from source). + purge guix` for Ubuntu packaging, `sudo make uninstall` for a build from + source, or running the GUIX [install script][install-script] with the + `--uninstall` [flag](https://guix.gnu.org/manual/devel/en/guix.html#index-uninstalling-Guix)). 2. Remove all build users and groups You may check for relevant users and groups using: From e76e8865818dc5369fd4e31e09c3d3103a6b75f8 Mon Sep 17 00:00:00 2001 From: David Gumberg Date: Wed, 7 May 2025 14:55:45 -0700 Subject: [PATCH 02/20] guix: doc: zdiff3 doesn't work --- contrib/guix/INSTALL.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/contrib/guix/INSTALL.md b/contrib/guix/INSTALL.md index 6320d971951d..812761dc5a81 100644 --- a/contrib/guix/INSTALL.md +++ b/contrib/guix/INSTALL.md @@ -763,6 +763,21 @@ Please see the following links for more details: - A commit to skip this test in Guix has been merged into the core-updates branch: [savannah/guix@6ba1058](https://git.savannah.gnu.org/cgit/guix.git/commit/?id=6ba1058df0c4ce5611c2367531ae5c3cdc729ab4) +## zdiff3 + +[Currently](https://issues.guix.gnu.org/72942) `guix` builds may fail if the +global git config has `merge.conflictstyle` set to `zdiff3` as follows: + +``` +Updating channel 'guix' from Git repository at 'https://codeberg.org/guix/guix.git'... +guix time-machine: error: Git error: unknown style 'zdiff3' given for 'merge.conflictstyle' +``` + +This can be fixed by setting `merge.conflictstyle` to `diff3`: + +```bash +git config --global merge.conflictstyle diff3 +``` [install-script]: #options-1-and-2-using-the-official-shell-installer-script-or-binary-tarball [install-bin-tarball]: #options-1-and-2-using-the-official-shell-installer-script-or-binary-tarball From d2716e9e5bcd7029153875b06f4606903d46fd83 Mon Sep 17 00:00:00 2001 From: ismaelsadeeq Date: Thu, 23 Nov 2023 23:22:08 +0100 Subject: [PATCH 03/20] policy: update `AreInputsStandard` to return error string This commit renames AreInputsStandard to ValidateInputsStandardness. ValidateInputsStandardness now returns valid TxValidationState if all inputs (scriptSigs) use only standard transaction forms else returns invalid TxValidationState which states why an input is not standard. --- src/bench/ccoins_caching.cpp | 3 +- src/policy/policy.cpp | 40 ++++++++++++++++++--------- src/policy/policy.h | 12 ++++---- src/test/fuzz/coins_view.cpp | 2 +- src/test/fuzz/transaction.cpp | 2 +- src/test/script_p2sh_tests.cpp | 8 +++--- src/test/transaction_tests.cpp | 32 +++++++++++++++------ src/validation.cpp | 7 +++-- test/functional/mempool_sigoplimit.py | 3 +- 9 files changed, 71 insertions(+), 38 deletions(-) diff --git a/src/bench/ccoins_caching.cpp b/src/bench/ccoins_caching.cpp index 351861536ca7..673616a5a740 100644 --- a/src/bench/ccoins_caching.cpp +++ b/src/bench/ccoins_caching.cpp @@ -49,8 +49,7 @@ static void CCoinsCaching(benchmark::Bench& bench) // Benchmark. const CTransaction tx_1(t1); bench.run([&] { - bool success{AreInputsStandard(tx_1, coins)}; - assert(success); + assert(ValidateInputsStandardness(tx_1, coins).IsValid()); }); } diff --git a/src/policy/policy.cpp b/src/policy/policy.cpp index 3da6cb7489b1..2f5f9fce8389 100644 --- a/src/policy/policy.cpp +++ b/src/policy/policy.cpp @@ -18,6 +18,7 @@ #include