Skip to content

Commit 272fb0a

Browse files
author
MarcoFalke
committed
Merge bitcoin/bitcoin#26645: util: Include full version id in bug reports
fa825bd util: Include full version id in bug reports (MarcoFalke) Pull request description: This will show the unique id of the full source code when the bug occurred, which can help debugging ACKs for top commit: 1440000bytes: utACK bitcoin/bitcoin@fa825bd theStack: ACK fa825bd john-moffett: ACK fa825bd Tree-SHA512: a7a775718f5f9796b5cffafbb3ace8adb5c163414ec584a57143157fc9dfb86f799e3b9c8365fcb831ee1e9eafc59d699d1653d772c68392de421b3de74dcd61
2 parents 0596aa4 + fa825bd commit 272fb0a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/util/check.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <config/bitcoin-config.h>
99
#endif
1010

11+
#include <clientversion.h>
1112
#include <tinyformat.h>
1213

1314
#include <cstdio>
@@ -16,7 +17,10 @@
1617

1718
std::string StrFormatInternalBug(const char* msg, const char* file, int line, const char* func)
1819
{
19-
return strprintf("Internal bug detected: \"%s\"\n%s:%d (%s)\nPlease report this issue here: %s\n", msg, file, line, func, PACKAGE_BUGREPORT);
20+
return strprintf("Internal bug detected: \"%s\"\n%s:%d (%s)\n"
21+
"%s %s\n"
22+
"Please report this issue here: %s\n",
23+
msg, file, line, func, PACKAGE_NAME, FormatFullVersion(), PACKAGE_BUGREPORT);
2024
}
2125

2226
NonFatalCheckError::NonFatalCheckError(const char* msg, const char* file, int line, const char* func)

0 commit comments

Comments
 (0)