From db4b8dbe47588a4e63893b079b05106e151cfe15 Mon Sep 17 00:00:00 2001 From: devdavidejesus Date: Fri, 2 Oct 2026 23:17:17 -0300 Subject: [PATCH 1/2] core: remove unused global statements MoneyRange() and CheckTransaction() only read coreparams; they never assign to it, so the global statements are not needed. flake8 7.4.1 reports them as F824, which makes the lint step of the CI fail. --- bitcoin/core/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/bitcoin/core/__init__.py b/bitcoin/core/__init__.py index ea578f9b..c70bce98 100644 --- a/bitcoin/core/__init__.py +++ b/bitcoin/core/__init__.py @@ -27,7 +27,6 @@ WITNESS_COINBASE_SCRIPTPUBKEY_MAGIC = bytes([OP_RETURN, 0x24, 0xaa, 0x21, 0xa9, 0xed]) def MoneyRange(nValue, params=None): - global coreparams if not params: params = coreparams @@ -770,7 +769,6 @@ def CheckTransaction(tx): Raises CheckTransactionError """ - global coreparams if not tx.vin: raise CheckTransactionError("CheckTransaction() : vin empty") From 017fac969ecb0ecd5348dadcdaa294ac5c60552b Mon Sep 17 00:00:00 2001 From: devdavidejesus Date: Fri, 2 Oct 2026 23:17:28 -0300 Subject: [PATCH 2/2] ci: test supported Python versions, update actions Python 3.9 and 3.10 have reached end-of-life; test 3.11 to 3.14 instead. Update actions/checkout and actions/setup-python to v7. --- .github/workflows/python-package.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index dcfa3db4..b9b74108 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -16,12 +16,12 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.11", "3.12", "3.13", "3.14"] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }} - name: Install dependencies