Skip to content

Linter fixes#1569

Open
tomt1664 wants to merge 2 commits into
ElementsProject:masterfrom
tomt1664:linter-fix
Open

Linter fixes#1569
tomt1664 wants to merge 2 commits into
ElementsProject:masterfrom
tomt1664:linter-fix

Conversation

@tomt1664

@tomt1664 tomt1664 commented Jul 1, 2026

Copy link
Copy Markdown
Member

Fixes for the v29 branch point linter checks.

tests/bitcoin_functional obsolete tests removed.

tomt1664 added 2 commits June 29, 2026 16:27
git-subtree-dir: src/secp256k1
git-subtree-split: 95b983597af0e5762a1266ede302806883045d22
@tomt1664 tomt1664 requested a review from delta1 July 6, 2026 14:22

@delta1 delta1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's difficult to review this without the linter job in CI. Is there an example run somewhere?

Comment thread ci/test/03_test_script.sh
if [ -n "$NO_DEPENDS" ]; then
echo "Building with CMake (NO_DEPENDS=1)..."
cmake -B build -S . ${CMAKE_GENERATOR:+-G "$CMAKE_GENERATOR"} $BITCOIN_CONFIG_ALL
cmake -B build -S . ${CMAKE_GENERATOR:+-G "$CMAKE_GENERATOR"} "$BITCOIN_CONFIG_ALL"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. Better to disable the shellcheck warning for this.

@@ -161,7 +161,7 @@ def script_BIP34_coinbase_height(height):
return CScript([CScriptNum(height)])


def create_coinbase(height, pubkey=None, *, script_pubkey=None, extra_output_script=None, fees=0, nValue=50, retarget_period=REGTEST_RETARGET_PERIOD):
def create_coinbase(height, pubkey=None, *, script_pubkey=None, extra_output_script=None, fees=0, nValue=50):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just noting that this breaks mining_mainnet.py but we have that commented out in CI

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lint-python-dead-code.py flagged it was unused (because mining_mainnet.py was disabled)

I'll put it back and add and exception to dead code ignore list.

@delta1

delta1 commented Jul 6, 2026

Copy link
Copy Markdown
Member

ACK bd2dbdc; tested locally

linter is DOCKER_BUILDKIT=1 docker build -t bitcoin-linter --file "./ci/lint_imagefile" ./ && \docker run --rm -v $(pwd):/bitcoin -it bitcoin-linter

@tomt1664

tomt1664 commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

It's difficult to review this without the linter job in CI. Is there an example run somewhere?

It's added to GHA later on in the 29.x branch upstream: bitcoin/bitcoin#33403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants