aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2024-06-23 13:28:11 +0200
committerTheCharlatan <seb.kung@gmail.com>2024-07-08 21:19:23 +0200
commit51fa26239af9bbfd44029aaf595cb4c6a8d4a75d (patch)
tree9aa8b897eb4d35d646ad1a60ce2e6e4c884a17a0 /src/script
parent39f9b80fba85d9818222c4d76e99ea1a804f5dda (diff)
downloadbitcoin-51fa26239af9bbfd44029aaf595cb4c6a8d4a75d.tar.xz
refactor: Mark some static global vars as const
These were found while looking for static mutable state in the kernel library.
Diffstat (limited to 'src/script')
-rw-r--r--src/script/descriptor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/descriptor.cpp b/src/script/descriptor.cpp
index 0987db194c..ae9dba6a50 100644
--- a/src/script/descriptor.cpp
+++ b/src/script/descriptor.cpp
@@ -116,13 +116,13 @@ std::string DescriptorChecksum(const Span<const char>& span)
* As a result, within-group-of-32 errors count as 1 symbol, as do cross-group errors that don't affect
* the position within the groups.
*/
- static std::string INPUT_CHARSET =
+ static const std::string INPUT_CHARSET =
"0123456789()[],'/*abcdefgh@:$%{}"
"IJKLMNOPQRSTUVWXYZ&+-.;<=>?!^_|~"
"ijklmnopqrstuvwxyzABCDEFGH`#\"\\ ";
/** The character set for the checksum itself (same as bech32). */
- static std::string CHECKSUM_CHARSET = "qpzry9x8gf2tvdw0s3jn54khce6mua7l";
+ static const std::string CHECKSUM_CHARSET = "qpzry9x8gf2tvdw0s3jn54khce6mua7l";
uint64_t c = 1;
int cls = 0;