Skip to content
Bitcoin Roots

v29.4-roots.3 · Commit 5: [PATCH 05/30] 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. The two line-number columns refer to before and after.

test/functional/feature_uacomment.py CHANGED
@@ -18,7 +18,10 @@ class UacommentTest(BitcoinTestFramework):
18
18
 
19
19
  def run_test(self):
20
20
  self.log.info("test multiple -uacomment")
21
- test_uacomment = self.nodes[0].getnetworkinfo()["subversion"][-12:-1]
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]
22
25
  assert_equal(test_uacomment, "(testnode0)")
23
26
 
24
27
  self.restart_node(0, ["-uacomment=foo"])