Skip to content

Fix intermittent failure in feature_pegin_subsidy.py - #1576

Open
tomt1664 wants to merge 1 commit into
ElementsProject:elements-23.xfrom
tomt1664:fix_intermittent_peginsubtest
Open

Fix intermittent failure in feature_pegin_subsidy.py#1576
tomt1664 wants to merge 1 commit into
ElementsProject:elements-23.xfrom
tomt1664:fix_intermittent_peginsubtest

Conversation

@tomt1664

@tomt1664 tomt1664 commented Aug 7, 2026

Copy link
Copy Markdown
Member

feature_pegin_subsidy.py has several assertions comparing the burn subsidy against hardcoded constants assumed fixed-length witness (t * 72 bytes per signature), but the actual subsidy is computed by the node from the parent-chain deposit transaction's real fee and vsize. DER-signature lengths on the parent-chain transaction vary by a byte or two causing a rare intermittent failure.

Replaced hardcoded subsidy values with a Python function that replicates CheckPeginSubsidyAndMinimum's computation.

@tomt1664
tomt1664 requested a review from delta1 August 7, 2026 15:08
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.

1 participant