What changed, and why it matters
This commit adds support for Bitcoin's new 'testnet4' network to a helper script called contrib/history.py. It simply tells the script which TCP port to use (40001) and which pycoin network symbol to import. There is no security issue visible in the change.
No security action needed. Reviewers may optionally verify that port 40001 and the xtn pycoin symbol are the correct defaults for testnet4, but the change itself is benign.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff extends an existing if/elif chain in contrib/history.py to handle the ‘testnet4’ network argument. It assigns port 40001 and reuses the existing pycoin testnet symbol (xtn). The change is additive, follows the existing pattern, and does not modify any server-side code, authentication, parsing, or network-handling logic.
Changed components
contrib/history.pyInspect captured patch +3 / −0
diff --git a/contrib/history.py b/contrib/history.py
index ac4867e..aa22099 100755
--- a/contrib/history.py
+++ b/contrib/history.py
@@ -42,6 +42,9 @@ def main():
elif args.network == 'testnet':
port = 60001
from pycoin.symbols.xtn import network
+ elif args.network == 'testnet4':
+ port = 40001
+ from pycoin.symbols.xtn import network
elif args.network == 'mainnet':
port = 50001
from pycoin.symbols.btc import network
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.