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

chore: Add logs to checking unbonding output #249

Merged
merged 3 commits into from
Nov 5, 2024

Conversation

gitferry
Copy link
Member

@gitferry gitferry commented Nov 5, 2024

No description provided.

@gitferry gitferry marked this pull request as ready for review November 5, 2024 03:14
@gitferry gitferry requested a review from a team as a code owner November 5, 2024 03:14
@gitferry gitferry requested review from KonradStaniec and RafilxTenfen and removed request for a team November 5, 2024 03:14
}

err = btcstaking.CheckSlashingTxMatchFundingTx(
pm.UnbondingSlashingTx.Transaction,
pm.UnbondingTx.Transaction,
unbondingOutputIdx,
0, // unbonding output always has only 1 output
Copy link
Collaborator

Choose a reason for hiding this comment

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

hmm if we are hardcoidng this, I feel than we should have a test case to assert that unbonding tx with more that 1 output are rejcected. Maybe in validate_parsed_message_test.go

Copy link
Member Author

Choose a reason for hiding this comment

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

good point. Added this case in e2916de

@gitferry gitferry force-pushed the chore/Add-log-unbonding-output branch from d2ce1fc to e2916de Compare November 5, 2024 04:49
@gitferry gitferry merged commit e41021e into main Nov 5, 2024
20 checks passed
@gitferry gitferry deleted the chore/Add-log-unbonding-output branch November 5, 2024 06:15
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