Skip to content

Instantly share code, notes, and snippets.

@Retropex
Created December 9, 2023 18:40
Show Gist options
  • Save Retropex/bc6653e4b4dd2ebbe25ac7fab0a7101a to your computer and use it in GitHub Desktop.
Save Retropex/bc6653e4b4dd2ebbe25ac7fab0a7101a to your computer and use it in GitHub Desktop.
hide user agent
From fe3d04c5f4a47f64700983e787df755fac275471 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?L=C3=A9o=20Haf?= <leohaf@orangepill.ovh>
Date: Sat, 9 Dec 2023 18:23:48 +0000
Subject: [PATCH] Rename user agent
---
src/clientversion.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/clientversion.cpp b/src/clientversion.cpp
index e3c13e1bdad7a..1c097943a9f3a 100644
--- a/src/clientversion.cpp
+++ b/src/clientversion.cpp
@@ -77,7 +77,7 @@ std::string FormatSubVersion(const std::string& name, int nClientVersion, const
}
ss << "/";
if (!fBaseNameOnly)
- ss << "Knots:20231115/";
+ ss << "";
return ss.str();
}
@Retropex
Copy link
Author

Retropex commented Dec 9, 2023

command to patch source code

patch -ruN bitcoin/src/clientversion.cpp < useragent.patch

@Retropex
Copy link
Author

Retropex commented Dec 9, 2023

only work with Bitcoin Knots 25.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment