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

Fix box-selection bug #57

Merged
merged 3 commits into from
May 4, 2023
Merged

Fix box-selection bug #57

merged 3 commits into from
May 4, 2023

Conversation

kettlebell
Copy link
Contributor

@kettlebell kettlebell commented Apr 29, 2023

Fixes a box-selection bug in the spectrum-deploy-lm-pool tool

Pool deployment involves a chain of 6 transactions. The first one always succeeds and it makes sure to create an output box B_0 that contains exactly the amount of ERGs necessary as input for the 2nd TX. Now the code before this PR always assumed that the only B_0 would be selected as input for the 2nd TX and it has worked this way for quite a while.

But we've now come across an example where this does not happen, leading to a mismatch of input and output ERGs for the TX. This PR removes that assumption relating to box-selection, as well manually checking for parity between input/output ergs for each TX in the chain.

Other changes

@kettlebell kettlebell requested a review from oskin1 May 2, 2023 14:21
Base automatically changed from fixes_from_public_tests to master May 4, 2023 00:17
@kettlebell kettlebell merged commit 13edc0b into master May 4, 2023
@kettlebell kettlebell deleted the fix_deploy_pool_box_selection branch May 4, 2023 00:17
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