aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pubkey.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pubkey.cpp b/src/pubkey.cpp
index 0849d2a266..fb25ebd4ca 100644
--- a/src/pubkey.cpp
+++ b/src/pubkey.cpp
@@ -192,7 +192,10 @@ int ecdsa_signature_parse_der_lax(secp256k1_ecdsa_signature* sig, const unsigned
* For an example script for calculating H, refer to the unit tests in
* ./test/functional/test_framework/crypto/secp256k1.py
*/
-constexpr XOnlyPubKey XOnlyPubKey::NUMS_H{"50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0"_hex_u8};
+constexpr XOnlyPubKey XOnlyPubKey::NUMS_H{
+ // Use immediate lambda to work around GCC-14 bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117966
+ []() consteval { return XOnlyPubKey{"50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0"_hex_u8}; }(),
+};
std::vector<CKeyID> XOnlyPubKey::GetKeyIDs() const
{