Commit graph

8 commits

Author SHA1 Message Date
GaltRanch
0a70a7260a Eliminate all star imports across the entire codebase
Replace every `from X import *` with explicit named imports:
- SPV/spvblock.py: 11 star imports resolved
- SPV/ppi.py: 4 star imports resolved, duplicate import removed
- SPV/nodeconnection.py, SPV/sysinf.py, SPV/apisnd.py, SPV/donation.py
- mempoolclock.py, sysinf.py, apisnd.py, donation.py

Removed unused imports (art, nodeconnection in donation, logos in apisnd).
Zero star imports remain in the project.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 12:13:33 -03:00
GaltRanch
0224cfe230 Fix critical security vulnerabilities across the codebase
Replace insecure patterns that exposed the application to command injection,
arbitrary code execution, and data interception attacks.

- Replace os.popen/os.system with subprocess.run using argument lists
- Migrate pickle config serialization to JSON format
- Replace bare except: blocks with specific exception types
- Fix insecure HTTP URLs to HTTPS (opreturnbot.com, ascii.live)
- Replace shell curl commands with requests library calls
- Add migrate_config.py script for pickle-to-JSON config migration
- Convert existing SPV config files to JSON format

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 10:24:47 -03:00
curly60e
3c9e8d257f
Update donation.py 2024-07-23 11:55:56 -03:00
Satoshi Nakamoto
51496ff01d
Update donation.py 2022-03-19 20:54:22 +01:00
Sourcery AI
b7a30c61f6 'Refactored by Sourcery' 2022-03-19 17:43:22 +00:00
Satoshi Nakamoto
b074a55150
Update donation.py 2022-03-19 18:43:13 +01:00
Satoshi Nakamoto
7332a60eb3
Update donation.py 2022-03-19 18:38:05 +01:00
Daniel Omar Vergara Pérez
231b533f40 Replace the pyblock pkg with pybitblock 2021-12-03 15:59:28 -06:00
Renamed from pyblock/donation.py (Browse further)