v29.4-roots.2 · Commit 5: [PATCH 05/21] product: establish Roots identity and Qt experience
test/functional/feature_uacomment.py
Before: test/functional/feature_uacomment.py · After: test/functional/feature_uacomment.py
File metadata
index fc372f543d6e7f0e1daf4a0d3f60461054a04717..e75821df5b1140559ecdf9bcf6a1dced621aad4f 100755
Download original patch · Release notes
Diff rows 1–11 of 11. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
test/functional/feature_uacomment.py
CHANGED
|
@@ -18,7 +18,10 @@ class UacommentTest(BitcoinTestFramework):
|
|
| 18 |
|
| 19 |
def run_test(self):
|
| 20 |
self.log.info("test multiple -uacomment")
|
| 21 |
-
test_uacomment = self.nodes[0].getnetworkinfo()["subversion"][-12:-1]
|
|
|
|
|
|
|
|
|
|
| 22 |
assert_equal(test_uacomment, "(testnode0)")
|
| 23 |
|
| 24 |
self.restart_node(0, ["-uacomment=foo"])
|
|
|
|
| 18 |
|
| 19 |
def run_test(self):
|
| 20 |
self.log.info("test multiple -uacomment")
|
| 21 |
+
subversion = self.nodes[0].getnetworkinfo()["subversion"]
|
| 22 |
+
# Roots branding must not alter the BIP14 user-agent identifier.
|
| 23 |
+
assert_equal(subversion.startswith("/Satoshi:29.4.0("), True)
|
| 24 |
+
test_uacomment = subversion[-12:-1]
|
| 25 |
assert_equal(test_uacomment, "(testnode0)")
|
| 26 |
|
| 27 |
self.restart_node(0, ["-uacomment=foo"])
|