Skip to content
Bitcoin Roots

v30.3-roots.1 · Commit 5: [PATCH 05/68] feat(qt): preserve Roots identity and GUI support on Core 30.3

test/functional/feature_uacomment.py

Before: test/functional/feature_uacomment.py · After: test/functional/feature_uacomment.py

File metadata
index fc372f543d6e7f0e1daf4a0d3f60461054a04717..baa6facea36804670571dfd1c787e820de3a8d00 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:30.3.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"])