Oh, yes, current plus three previous. Classic off-by-one. I didn't verify the output with the mentioned versions in #265 (master, 30.x, 29.x).
For reference, this is the output on current master (2fe76ed8324):
$ CURRENT_MAJOR_VERSION=$(git tag --list 'v*' --sort=-v:refname | sed 's/^v//' | awk -F. '{ print $1 }' | head -1)
$ echo $CURRENT_MAJOR_VERSION
31
$ PREV_MAJOR_VERSIONS=$(seq $((CURRENT_MAJOR_VERSION - 3)) $((CURRENT_MAJOR_VERSION - 1)))
$ echo $PREV_MAJOR_VERSIONS
28 29 30
So it should be this:
diff --git a/delete_nonreduced_fuzz_inputs.sh b/delete_nonreduced_fuzz_inputs.sh
index 49968fe7da..61426864f9 100644
--- a/delete_nonreduced_fuzz_inputs.sh
+++ b/delete_nonreduced_fuzz_inputs.sh
@@ -50,7 +50,7 @@ git clone --depth=1 --no-single-branch https://github.com/bitcoin/bitcoin.git
# last three major versions.
REFS=("master")
CURRENT_MAJOR_VERSION=$(git tag --list 'v*' --sort=-v:refname | sed 's/^v//' | awk -F. '{ print $1 }' | head -1)
- PREV_MAJOR_VERSIONS=$(seq $((CURRENT_MAJOR_VERSION - 3)) $((CURRENT_MAJOR_VERSION - 1)))
+ PREV_MAJOR_VERSIONS=$(seq $((CURRENT_MAJOR_VERSION - 2)) $((CURRENT_MAJOR_VERSION - 1)))
for version in $PREV_MAJOR_VERSIONS; do
# versions before 29.x didn't use cmake
if [ "$version" -lt 29 ]; then
Then I can also remove the check for >= 29.x because of the new cmake build system below.