You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever we validate a complete-deposit or withdrawal-accept Stacks transaction, we need to inspect an associated bitcoin transaction to verify that the "fee" used in the Stacks transaction matches what it should be. This is needed to make sure that every element in the Stacks transaction matches up what the signers think that it should be.
1.1 Context & Purpose
The validation code in #545 only checks that the fee is reasonable, not that it is computed correctly. We should add functionality that computes the fee associated with each input and output of a bitcoin transaction. This is also likely needed for validating for #286.
2. Technical Details:
2.1 Acceptance Criteria:
Add functionality that computes the fee associated with each input and output of a bitcoin transaction.
Use this functionality when validating Stacks complete-deposit or withdrawal-accept transactions.
Feature - Add bitcoin transaction fee validation
1. Description
Whenever we validate a
complete-deposit
orwithdrawal-accept
Stacks transaction, we need to inspect an associated bitcoin transaction to verify that the "fee" used in the Stacks transaction matches what it should be. This is needed to make sure that every element in the Stacks transaction matches up what the signers think that it should be.1.1 Context & Purpose
The validation code in #545 only checks that the fee is reasonable, not that it is computed correctly. We should add functionality that computes the fee associated with each input and output of a bitcoin transaction. This is also likely needed for validating for #286.
2. Technical Details:
2.1 Acceptance Criteria:
complete-deposit
orwithdrawal-accept
transactions.3. Related Issues and Pull Requests (optional):
The text was updated successfully, but these errors were encountered: