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

Correct reveal tx fee calculation #1853

Merged
merged 3 commits into from
Mar 7, 2023
Merged

Conversation

gmart7t2
Copy link
Contributor

@gmart7t2 gmart7t2 commented Feb 27, 2023

The inscribe command would calculate the reveal tx fee incorrectly whenever the reveal tx wasn't funded by the first output of the commit tx as is the case when you inscribe on a satpoint with a non zero offset.

In such cases if the first output of the commit tx was much smaller than the 2nd the inscribe command would fail due to calculating a negative fee.

This commit fixes the problem and closes #1844.

gmart7t2 and others added 2 commits February 27, 2023 19:16
The inscribe command would calculate the reveal tx fee incorrectly whenever the reveal tx wasn't funded by the first output of the commit tx as is the case when you inscribe on a satpointvwith a non zero offset.

In such cases If the first output of the commit tx was much smaller than the 2nd the inscribe command would fail due to calculating a negative fee.

This commit fixes the problem and closes ordinals#1844.
Copy link
Collaborator

@raphjaph raphjaph left a comment

Choose a reason for hiding this comment

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

This is good find, thanks!

Copy link
Collaborator

@raphjaph raphjaph left a comment

Choose a reason for hiding this comment

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

This is a good find, thanks!

@raphjaph raphjaph enabled auto-merge (squash) March 7, 2023 03:31
@raphjaph raphjaph merged commit 332a0bd into ordinals:master Mar 7, 2023
@gmart7t2 gmart7t2 deleted the patch-2 branch March 18, 2023 22:54
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.

Inscribing on high offset satpoints causes false high fee report
2 participants