aboutsummaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-07-17 08:54:52 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-07-26 17:31:15 +0200
commitfa895c72832f9555b52d5bb1dba1093f73de3136 (patch)
tree72c2ebde91b842763c26ac369cd7b53c34d1c6f3 /src/node
parentfa359255fe6b4de5f26784bfc147dbfb58bef116 (diff)
downloadbitcoin-fa895c72832f9555b52d5bb1dba1093f73de3136.tar.xz
mingw: Document mode wbx workaround
Diffstat (limited to 'src/node')
-rw-r--r--src/node/blockstorage.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/node/blockstorage.cpp b/src/node/blockstorage.cpp
index 8db5cbc9fd..822f95ee91 100644
--- a/src/node/blockstorage.cpp
+++ b/src/node/blockstorage.cpp
@@ -1164,7 +1164,13 @@ static auto InitBlocksdirXorKey(const BlockManager::Options& opts)
xor_key_file >> xor_key;
} else {
// Create initial or missing xor key file
- AutoFile xor_key_file{fsbridge::fopen(xor_key_path, "wbx")};
+ AutoFile xor_key_file{fsbridge::fopen(xor_key_path,
+#ifdef __MINGW64__
+ "wb" // Temporary workaround for https://github.com/bitcoin/bitcoin/issues/30210
+#else
+ "wbx"
+#endif
+ )};
xor_key_file << xor_key;
}
// If the user disabled the key, it must be zero.