lint: check copyright headers #36967

Manually merged
fanquake merged 3 commits from lint_copyright_header into master 2026-11-26 16:55:57 +00:00 AGit
fanquake commented 2026-11-24 17:34:40 +00:00 (Migrated from github.com)
Followsup to https://github.com/bitcoin/bitcoin/pull/34106#issuecomment-7138103662.
DrahtBot commented 2026-11-24 17:34:50 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK stickies-v

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36967 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36967.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36967#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [stickies-v](https://github.com/bitcoin/bitcoin/pull/36967#issuecomment-7191106902) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--5faf32d7da4f0f540f40219e4f7537a3-->
First-time contributor

Earlier concerns neither republished nor resolved: 1 minor finding. See the Run archive linked from the Review report for their assessments.

🔵 Suggestion · Copyright lint skips Objective-C++ and CMake sources

The pathspec omits tracked .mm and .cmake files, so missing headers in those formats go unchecked even though the existing Objective-C++ headers already satisfy the predicate.

Location: test/lint/test_runner/src/lint_docs.rs:39 (head).

Review coverage was incomplete.


Reviewed: 801b7e82b45f · Review report · Previous reports

permalink

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:806938d40e279b6d701b2e78128bb1a09b55193a0b697245a1dce6241d3081c1:3607c760b63c01fb7f1f349adfc3fd0614b148a7df02e42f2f0edc2d448925a1 --> <!-- ralph-base:5ba05739881855cba25c3c05d6f82a61b8a0665f --> <!-- ralph-head:801b7e82b45f2d9b7a897caae993bfac144067e5 --> <!-- ralph-case:72b86f0fbd69f2d213bc71c41bfbd97af5054fbd48940373c9355f9fde5d5507 --> Earlier concerns neither republished nor resolved: 1 minor finding. See the Run archive linked from the Review report for their assessments. **🔵 Suggestion · Copyright lint skips Objective-C++ and CMake sources** The pathspec omits tracked `.mm` and `.cmake` files, so missing headers in those formats go unchecked even though the existing Objective-C++ headers already satisfy the predicate. Location: [`test/lint/test_runner/src/lint_docs.rs:39`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/801b7e82b45f2d9b7a897caae993bfac144067e5/test/lint/test_runner/src/lint_docs.rs#L39>) (head). Review coverage was incomplete. <!-- Review tier: standard --> --- Reviewed: [`801b7e82b45f`](<https://git.fish.foo/bitcoin/bitcoin/commit/801b7e82b45f2d9b7a897caae993bfac144067e5>) · [Review report](<https://review.fish.foo/report/36967-801b7e82b45f2d9b7a897caae993bfac144067e5-3127-5.html>) · [Previous reports](<https://review.fish.foo/traces/36967/>) [permalink](<https://review.fish.foo/report/36967-801b7e82b45f2d9b7a897caae993bfac144067e5-3127-5.html>)
stickies-v commented 2026-11-24 18:47:22 +00:00 (Migrated from github.com)

Concept ACK, less review burden when this is automatically checked.

I think in a follow-up we should just bite the bullet and standardize everything to a single Copyright (c) The Bitcoin Core developers header, but best to get this in first.

Concept ACK, less review burden when this is automatically checked. I think in a follow-up we should just bite the bullet and standardize everything to a single `Copyright (c) The Bitcoin Core developers` header, but best to get this in first.
maflcko (Migrated from github.com) approved these changes 2026-11-24 18:52:45 +00:00
maflcko (Migrated from github.com) left a comment

thx, I think it makes sense to automate this boilerplate going forward, instead of spending manual (recurring) review on this.

thx, I think it makes sense to automate this boilerplate going forward, instead of spending manual (recurring) review on this.
maflcko (Migrated from github.com) commented 2026-11-24 18:51:04 +00:00

I think there is one ci file which is missing the The.

        .find(|line| line.starts_with("Copyright") && line.ends_with("The Bitcoin Core developers"))

could make sense to add it in both?

I think there is one ci file which is missing the `The`. ```suggestion .find(|line| line.starts_with("Copyright") && line.ends_with("The Bitcoin Core developers")) ``` could make sense to add it in both?
fanquake (Migrated from github.com) reviewed 2026-11-25 09:16:24 +00:00
fanquake (Migrated from github.com) commented 2026-11-25 09:16:24 +00:00

Thanks, changed both.

Thanks, changed both.
stickies-v (Migrated from github.com) approved these changes 2026-11-25 12:17:44 +00:00
stickies-v (Migrated from github.com) left a comment

ACK 2dfb2ab5e0, non-blocking suggestions

ACK 2dfb2ab5e0ff7ad40bcedf13f20f7e07cd6106d7, non-blocking suggestions
stickies-v (Migrated from github.com) commented 2026-11-25 12:07:19 +00:00

nit: might be useful to feedback which file failed? my llm tells me let text = fs::read_to_string(file).unwrap_or_else(|e| panic!("Failed to read {file}: {e}")); would be a good alternative but i'm not a rustacean.

nit: might be useful to feedback which file failed? my llm tells me `let text = fs::read_to_string(file).unwrap_or_else(|e| panic!("Failed to read {file}: {e}"));` would be a good alternative but i'm not a rustacean.
stickies-v (Migrated from github.com) commented 2026-11-25 11:52:52 +00:00

I think .rs, .cmake and CMakeLists files are also common enough to be included here?

I think .rs, .cmake and CMakeLists files are also common enough to be included here?
stickies-v (Migrated from github.com) commented 2026-11-25 12:16:57 +00:00

Many of these are MIT license and heavily modified by us, so I think we can just merge headers and remove exclusion for a lot of these?

git diff on 2dfb2ab5e0
diff --git a/contrib/asmap/asmap-tool.py b/contrib/asmap/asmap-tool.py
index b594e4796a..469a6fb472 100755
--- a/contrib/asmap/asmap-tool.py
+++ b/contrib/asmap/asmap-tool.py
@@ -1,7 +1,8 @@
 #!/usr/bin/env python3
 # Copyright (c) 2022 Pieter Wuille
+# Copyright (c) The Bitcoin Core developers
 # Distributed under the MIT software license, see the accompanying
-# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
+# file COPYING or http://www.opensource.org/licenses/mit-license.php.
 
 import argparse
 import sys
diff --git a/contrib/asmap/asmap.py b/contrib/asmap/asmap.py
index 292048b6d8..f4498c0413 100644
--- a/contrib/asmap/asmap.py
+++ b/contrib/asmap/asmap.py
@@ -1,6 +1,7 @@
 # Copyright (c) 2022 Pieter Wuille
+# Copyright (c) The Bitcoin Core developers
 # Distributed under the MIT software license, see the accompanying
-# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
+# file COPYING or http://www.opensource.org/licenses/mit-license.php.
 
 """
 This module provides the ASNEntry and ASMap classes.
diff --git a/contrib/devtools/headerssync-params.py b/contrib/devtools/headerssync-params.py
index 884e00cd7d..4efbc9cabd 100755
--- a/contrib/devtools/headerssync-params.py
+++ b/contrib/devtools/headerssync-params.py
@@ -1,5 +1,6 @@
 #!/usr/bin/env python3
 # Copyright (c) 2022 Pieter Wuille
+# Copyright (c) The Bitcoin Core developers
 # Distributed under the MIT software license, see the accompanying
 # file COPYING or http://www.opensource.org/licenses/mit-license.php.
 
diff --git a/contrib/guix/symbol-check.py b/contrib/guix/symbol-check.py
index 42d20dc314..393d95bf4b 100755
--- a/contrib/guix/symbol-check.py
+++ b/contrib/guix/symbol-check.py
@@ -1,5 +1,6 @@
 #!/usr/bin/env python3
 # Copyright (c) 2014 Wladimir J. van der Laan
+# Copyright (c) The Bitcoin Core developers
 # Distributed under the MIT software license, see the accompanying
 # file COPYING or http://www.opensource.org/licenses/mit-license.php.
 '''
diff --git a/src/cuckoocache.h b/src/cuckoocache.h
index a064607537..4f78cca5ee 100644
--- a/src/cuckoocache.h
+++ b/src/cuckoocache.h
@@ -1,4 +1,5 @@
 // Copyright (c) 2016 Jeremy Rubin
+// Copyright (c) The Bitcoin Core developers
 // Distributed under the MIT software license, see the accompanying
 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
 
diff --git a/src/test/torcontrol_tests.cpp b/src/test/torcontrol_tests.cpp
index 659caaef61..96ff2ac59d 100644
--- a/src/test/torcontrol_tests.cpp
+++ b/src/test/torcontrol_tests.cpp
@@ -1,4 +1,5 @@
 // Copyright (c) 2017 The Zcash developers
+// Copyright (c) The Bitcoin Core developers
 // Distributed under the MIT software license, see the accompanying
 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
 //
diff --git a/test/functional/test_framework/crypto/muhash.py b/test/functional/test_framework/crypto/muhash.py
index 09241f6203..b331fce562 100644
--- a/test/functional/test_framework/crypto/muhash.py
+++ b/test/functional/test_framework/crypto/muhash.py
@@ -1,4 +1,5 @@
 # Copyright (c) 2020 Pieter Wuille
+# Copyright (c) The Bitcoin Core developers
 # Distributed under the MIT software license, see the accompanying
 # file COPYING or http://www.opensource.org/licenses/mit-license.php.
 """Native Python MuHash3072 implementation."""
diff --git a/test/functional/test_framework/crypto/ripemd160.py b/test/functional/test_framework/crypto/ripemd160.py
index 12801364b4..7fdb19e5c8 100644
--- a/test/functional/test_framework/crypto/ripemd160.py
+++ b/test/functional/test_framework/crypto/ripemd160.py
@@ -1,4 +1,5 @@
 # Copyright (c) 2021 Pieter Wuille
+# Copyright (c) The Bitcoin Core developers
 # Distributed under the MIT software license, see the accompanying
 # file COPYING or http://www.opensource.org/licenses/mit-license.php.
 """Test-only pure Python RIPEMD160 implementation."""
diff --git a/test/functional/test_framework/descriptors.py b/test/functional/test_framework/descriptors.py
index 0f65f63d6b..b6ad72d99c 100644
--- a/test/functional/test_framework/descriptors.py
+++ b/test/functional/test_framework/descriptors.py
@@ -1,5 +1,6 @@
 #!/usr/bin/env python3
 # Copyright (c) 2019 Pieter Wuille
+# Copyright (c) The Bitcoin Core developers
 # Distributed under the MIT software license, see the accompanying
 # file COPYING or http://www.opensource.org/licenses/mit-license.php.
 """Utility functions related to output descriptors"""
diff --git a/test/functional/test_framework/key.py b/test/functional/test_framework/key.py
index 40c76e29fa..4a775ea0a0 100644
--- a/test/functional/test_framework/key.py
+++ b/test/functional/test_framework/key.py
@@ -1,4 +1,5 @@
 # Copyright (c) 2019-2020 Pieter Wuille
+# Copyright (c) The Bitcoin Core developers
 # Distributed under the MIT software license, see the accompanying
 # file COPYING or http://www.opensource.org/licenses/mit-license.php.
 """Test-only secp256k1 elliptic curve protocols implementation
diff --git a/test/functional/test_framework/segwit_addr.py b/test/functional/test_framework/segwit_addr.py
index 861ca2b949..32c6e3e294 100644
--- a/test/functional/test_framework/segwit_addr.py
+++ b/test/functional/test_framework/segwit_addr.py
@@ -1,5 +1,6 @@
 #!/usr/bin/env python3
 # Copyright (c) 2017 Pieter Wuille
+# Copyright (c) The Bitcoin Core developers
 # Distributed under the MIT software license, see the accompanying
 # file COPYING or http://www.opensource.org/licenses/mit-license.php.
 """Reference implementation for Bech32/Bech32m and segwit addresses."""
diff --git a/test/lint/test_runner/src/lint_docs.rs b/test/lint/test_runner/src/lint_docs.rs
index 34d2162c20..611395ec14 100644
--- a/test/lint/test_runner/src/lint_docs.rs
+++ b/test/lint/test_runner/src/lint_docs.rs
@@ -40,25 +40,14 @@ pub fn lint_copyright_doc() -> LintResult {
             .args(get_pathspecs_default_excludes())
             .args([
                 // External copyright.
-                ":(exclude)contrib/asmap/asmap-tool.py",
-                ":(exclude)contrib/asmap/asmap.py",
                 ":(exclude)contrib/devtools/clang-format-diff.py",
-                ":(exclude)contrib/devtools/headerssync-params.py",
-                ":(exclude)contrib/guix/symbol-check.py",
                 ":(exclude)src/bench/nanobench.h",
-                ":(exclude)src/cuckoocache.h",
                 ":(exclude)src/test/fuzz/FuzzedDataProvider.h",
-                ":(exclude)src/test/torcontrol_tests.cpp",
                 ":(exclude)src/tinyformat.h",
                 ":(exclude)src/univalue/include/univalue_utffilter.h",
                 ":(exclude)src/univalue/lib/univalue_write.cpp",
                 ":(exclude)src/util/subprocess.h",
                 ":(exclude)test/functional/test_framework/authproxy.py",
-                ":(exclude)test/functional/test_framework/crypto/muhash.py",
-                ":(exclude)test/functional/test_framework/crypto/ripemd160.py",
-                ":(exclude)test/functional/test_framework/descriptors.py",
-                ":(exclude)test/functional/test_framework/key.py",
-                ":(exclude)test/functional/test_framework/segwit_addr.py",
                 // Empty Python package marker files.
                 ":(exclude,glob)**/__init__.py",
             ]),

Many of these are MIT license and heavily modified by us, so I think we can just merge headers and remove exclusion for a lot of these? <details> <summary>git diff on 2dfb2ab5e0</summary> ```diff diff --git a/contrib/asmap/asmap-tool.py b/contrib/asmap/asmap-tool.py index b594e4796a..469a6fb472 100755 --- a/contrib/asmap/asmap-tool.py +++ b/contrib/asmap/asmap-tool.py @@ -1,7 +1,8 @@ #!/usr/bin/env python3 # Copyright (c) 2022 Pieter Wuille +# Copyright (c) The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying -# file LICENSE or http://www.opensource.org/licenses/mit-license.php. +# file COPYING or http://www.opensource.org/licenses/mit-license.php. import argparse import sys diff --git a/contrib/asmap/asmap.py b/contrib/asmap/asmap.py index 292048b6d8..f4498c0413 100644 --- a/contrib/asmap/asmap.py +++ b/contrib/asmap/asmap.py @@ -1,6 +1,7 @@ # Copyright (c) 2022 Pieter Wuille +# Copyright (c) The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying -# file LICENSE or http://www.opensource.org/licenses/mit-license.php. +# file COPYING or http://www.opensource.org/licenses/mit-license.php. """ This module provides the ASNEntry and ASMap classes. diff --git a/contrib/devtools/headerssync-params.py b/contrib/devtools/headerssync-params.py index 884e00cd7d..4efbc9cabd 100755 --- a/contrib/devtools/headerssync-params.py +++ b/contrib/devtools/headerssync-params.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # Copyright (c) 2022 Pieter Wuille +# Copyright (c) The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/contrib/guix/symbol-check.py b/contrib/guix/symbol-check.py index 42d20dc314..393d95bf4b 100755 --- a/contrib/guix/symbol-check.py +++ b/contrib/guix/symbol-check.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # Copyright (c) 2014 Wladimir J. van der Laan +# Copyright (c) The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' diff --git a/src/cuckoocache.h b/src/cuckoocache.h index a064607537..4f78cca5ee 100644 --- a/src/cuckoocache.h +++ b/src/cuckoocache.h @@ -1,4 +1,5 @@ // Copyright (c) 2016 Jeremy Rubin +// Copyright (c) The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. diff --git a/src/test/torcontrol_tests.cpp b/src/test/torcontrol_tests.cpp index 659caaef61..96ff2ac59d 100644 --- a/src/test/torcontrol_tests.cpp +++ b/src/test/torcontrol_tests.cpp @@ -1,4 +1,5 @@ // Copyright (c) 2017 The Zcash developers +// Copyright (c) The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // diff --git a/test/functional/test_framework/crypto/muhash.py b/test/functional/test_framework/crypto/muhash.py index 09241f6203..b331fce562 100644 --- a/test/functional/test_framework/crypto/muhash.py +++ b/test/functional/test_framework/crypto/muhash.py @@ -1,4 +1,5 @@ # Copyright (c) 2020 Pieter Wuille +# Copyright (c) The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Native Python MuHash3072 implementation.""" diff --git a/test/functional/test_framework/crypto/ripemd160.py b/test/functional/test_framework/crypto/ripemd160.py index 12801364b4..7fdb19e5c8 100644 --- a/test/functional/test_framework/crypto/ripemd160.py +++ b/test/functional/test_framework/crypto/ripemd160.py @@ -1,4 +1,5 @@ # Copyright (c) 2021 Pieter Wuille +# Copyright (c) The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test-only pure Python RIPEMD160 implementation.""" diff --git a/test/functional/test_framework/descriptors.py b/test/functional/test_framework/descriptors.py index 0f65f63d6b..b6ad72d99c 100644 --- a/test/functional/test_framework/descriptors.py +++ b/test/functional/test_framework/descriptors.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # Copyright (c) 2019 Pieter Wuille +# Copyright (c) The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Utility functions related to output descriptors""" diff --git a/test/functional/test_framework/key.py b/test/functional/test_framework/key.py index 40c76e29fa..4a775ea0a0 100644 --- a/test/functional/test_framework/key.py +++ b/test/functional/test_framework/key.py @@ -1,4 +1,5 @@ # Copyright (c) 2019-2020 Pieter Wuille +# Copyright (c) The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test-only secp256k1 elliptic curve protocols implementation diff --git a/test/functional/test_framework/segwit_addr.py b/test/functional/test_framework/segwit_addr.py index 861ca2b949..32c6e3e294 100644 --- a/test/functional/test_framework/segwit_addr.py +++ b/test/functional/test_framework/segwit_addr.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # Copyright (c) 2017 Pieter Wuille +# Copyright (c) The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Reference implementation for Bech32/Bech32m and segwit addresses.""" diff --git a/test/lint/test_runner/src/lint_docs.rs b/test/lint/test_runner/src/lint_docs.rs index 34d2162c20..611395ec14 100644 --- a/test/lint/test_runner/src/lint_docs.rs +++ b/test/lint/test_runner/src/lint_docs.rs @@ -40,25 +40,14 @@ pub fn lint_copyright_doc() -> LintResult { .args(get_pathspecs_default_excludes()) .args([ // External copyright. - ":(exclude)contrib/asmap/asmap-tool.py", - ":(exclude)contrib/asmap/asmap.py", ":(exclude)contrib/devtools/clang-format-diff.py", - ":(exclude)contrib/devtools/headerssync-params.py", - ":(exclude)contrib/guix/symbol-check.py", ":(exclude)src/bench/nanobench.h", - ":(exclude)src/cuckoocache.h", ":(exclude)src/test/fuzz/FuzzedDataProvider.h", - ":(exclude)src/test/torcontrol_tests.cpp", ":(exclude)src/tinyformat.h", ":(exclude)src/univalue/include/univalue_utffilter.h", ":(exclude)src/univalue/lib/univalue_write.cpp", ":(exclude)src/util/subprocess.h", ":(exclude)test/functional/test_framework/authproxy.py", - ":(exclude)test/functional/test_framework/crypto/muhash.py", - ":(exclude)test/functional/test_framework/crypto/ripemd160.py", - ":(exclude)test/functional/test_framework/descriptors.py", - ":(exclude)test/functional/test_framework/key.py", - ":(exclude)test/functional/test_framework/segwit_addr.py", // Empty Python package marker files. ":(exclude,glob)**/__init__.py", ]), ``` </details>
stickies-v (Migrated from github.com) commented 2026-11-25 11:54:16 +00:00

nit

Add the missing copyright headers, or exclude the above paths if not applicable. 
nit ```suggestion Add the missing copyright headers, or exclude the above paths if not applicable. ```
fanquake (Migrated from github.com) reviewed 2026-11-25 14:42:28 +00:00
fanquake (Migrated from github.com) commented 2026-11-25 14:42:28 +00:00

I think you're right. Have pushed that up.

I think you're right. Have pushed that up.
maflcko (Migrated from github.com) reviewed 2026-11-25 15:12:52 +00:00
maflcko (Migrated from github.com) commented 2026-11-25 15:12:52 +00:00

I think this was written by Mara for Bitcoin Core, not external

I think this was written by Mara for Bitcoin Core, not external
stickies-v (Migrated from github.com) approved these changes 2026-11-25 15:22:14 +00:00
stickies-v (Migrated from github.com) left a comment

re-ACK 19f4b1f32f

re-ACK 19f4b1f32fcf544d3008355c2dc42c13d3638776
stickies-v (Migrated from github.com) commented 2026-11-25 15:21:42 +00:00

nit: this diff is in the wrong commit

nit: this diff is in the wrong commit
fanquake (Migrated from github.com) reviewed 2026-11-25 15:35:43 +00:00
fanquake (Migrated from github.com) commented 2026-11-25 15:35:43 +00:00

Thanks, fixed.

Thanks, fixed.
fanquake (Migrated from github.com) reviewed 2026-11-25 15:35:59 +00:00
fanquake (Migrated from github.com) commented 2026-11-25 15:35:59 +00:00

Made not-external.

Made not-external.
stickies-v commented 2026-11-26 11:44:28 +00:00 (Migrated from github.com)

re-ACK 801b7e82b4

re-ACK 801b7e82b4
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!36967
No description provided.