Skip to content

Lease chain fee estimation calculation includes account version#434

Open
ffranr wants to merge 3 commits into
lightninglabs:masterfrom
ffranr:issue431_lease_chain_fee_estimation
Open

Lease chain fee estimation calculation includes account version#434
ffranr wants to merge 3 commits into
lightninglabs:masterfrom
ffranr:issue431_lease_chain_fee_estimation

Conversation

@ffranr

@ffranr ffranr commented Jan 19, 2023

Copy link
Copy Markdown
Contributor

I need to add a test to cover this aspect:

what version of the account will be stored in the batch if in that batch the account is auto-upgraded from P2WSH (version 0) to P2TR (version 1)

This PR addresses this issue: #431

The account versions from the spending accounts snapshot will be used in estimating on-chain fees.
Account version is taken from a snapshot of spending account states. This is because the account might be updated to a new version within the batch.
@ffranr ffranr force-pushed the issue431_lease_chain_fee_estimation branch from 0e7a18b to 1a14e73 Compare January 19, 2023 14:13
@ffranr

ffranr commented Jan 19, 2023

Copy link
Copy Markdown
Contributor Author

I think the code should be correct at this point. I need to add an itest to subasta to make sure that account updates are handled correctly.

I think that the chain fee estimation code should be refactored out of the prepareLeasesResponse method. And then unit tests can be written that the correct fees are estimated for a given batch.

@positiveblue positiveblue self-requested a review September 18, 2023 22:54
@lightninglabs-deploy

Copy link
Copy Markdown
Collaborator

@positiveblue: review reminder

@lightninglabs-deploy

Copy link
Copy Markdown
Collaborator

Closing due to inactivity

8 similar comments
@lightninglabs-deploy

Copy link
Copy Markdown
Collaborator

Closing due to inactivity

@lightninglabs-deploy

Copy link
Copy Markdown
Collaborator

Closing due to inactivity

@lightninglabs-deploy

Copy link
Copy Markdown
Collaborator

Closing due to inactivity

@lightninglabs-deploy

Copy link
Copy Markdown
Collaborator

Closing due to inactivity

@lightninglabs-deploy

Copy link
Copy Markdown
Collaborator

Closing due to inactivity

@lightninglabs-deploy

Copy link
Copy Markdown
Collaborator

Closing due to inactivity

@lightninglabs-deploy

Copy link
Copy Markdown
Collaborator

Closing due to inactivity

@lightninglabs-deploy

Copy link
Copy Markdown
Collaborator

Closing due to inactivity

@guggero

guggero commented Sep 26, 2023

Copy link
Copy Markdown
Contributor

!lightninglabs-deploy mute

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