Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

peer_control: Fix check_funding_details assert #5378

Merged
merged 1 commit into from
Jul 8, 2022

Conversation

ddustin
Copy link
Collaborator

@ddustin ddustin commented Jul 5, 2022

Check funding_outnum validity first to avoid reading invalid outputs.

Changelog-Fixed: Fixed a potential issue if the number of outputs decreases in a dualopen RBF or splice.

Check funding_outnum validity first to avoid reading invalid outputs

Changelog-Fixed: Fixed a potential issue if the number of outputs decreases in a dualopen RBF or splice.
@ddustin ddustin force-pushed the ddustin/check_funding_fix branch from c2109b5 to 275b534 Compare July 5, 2022 23:02

if (!amount_asset_is_main(&asset))
if (funding_outnum >= tx->wtx->num_outputs)
Copy link
Collaborator

Choose a reason for hiding this comment

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

do you think that in this case can be necessary to add a log line at debug level? or this check will be pretty clear to debug if happens ?

@niftynei
Copy link
Collaborator

niftynei commented Jul 8, 2022

ACK 275b534

Flaky tests are flaky...

@niftynei niftynei merged commit 9296537 into ElementsProject:master Jul 8, 2022
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.

3 participants