Skip to content

pytest: fundchannel fails because "Script failed an OP_EQUALVERIFY operation" #8877

@enaples

Description

@enaples

Steps to reproduce

System: MacOS Tahoe 26.2

Bitcoin version tested: v28.1, v30.2
CLN: v25.12.1

Run tests/test_opening.py file:

EXPERIMENTAL_DUAL_FUND=0 uv run python -m pytest -vvvv tests/test_opening.py

Expected results

All v1 tests fail because:

pyln.client.lightning.RpcError: RPC call failed: method: fundchannel,
payload: 
{
    'id': '<id>', 
    'amount': <amount>, 
    'announce': True
}, 

error: 
{
    'code': -1, 
    'message': 'Error broadcasting transaction: error code: -26
                \\nerror message:\\n
                mempool-script-verify-flag-failed 
                (Script failed an OP_EQUALVERIFY operation), input 0 of <txid>
                (wtxid <wtxid>), spending <prev_txid>:<vout>. 
                Unsent tx discarded <raw_tx_hex>'
}

or

pyln.client.lightning.RpcError: RPC call failed: method: fundchannel, 
payload: 
{
    'id': '<id>', 
    'amount': <amount>, 
    'announce': True
}, 

error: 
{
    'code': 303, 
    'message': 'Error broadcasting funding tx: error code: -26
                \\\\nerror message:\\\\nmandatory-script-verify-flag-failed
                (Script failed an OP_EQUALVERIFY operation). Unsent tx 
                discarded <raw_tx_hex>.', 
    'data': {
                    'id': '<id>', 
                    'method': 'openchannel_signed'
                }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions