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

Remove spendableValueFromProposedFed constant and use minPegoutTxValue directly #2918

Conversation

julia-zack
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Jan 8, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

@julia-zack julia-zack marked this pull request as ready for review January 9, 2025 13:33
@julia-zack julia-zack requested a review from a team as a code owner January 9, 2025 13:33
provider.setSvpFundTxHashUnsigned(svpFundTransactionUnsigned.getHash());
PegoutsWaitingForConfirmations pegoutsWaitingForConfirmations = provider.getPegoutsWaitingForConfirmations();

List<UTXO> utxosToUse = federationSupport.getActiveFederationBtcUTXOs();
settleReleaseRequest(utxosToUse, pegoutsWaitingForConfirmations, svpFundTransactionUnsigned, rskTxHash, spendableValueFromProposedFederation);
// minPegoutValue to proposed fed, minPegoutValue to flyover proposed fed
Coin totalValueSentToProposedFederation = bridgeConstants.getMinimumPegoutTxValue().multiply(2);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we get this value from the transaction inputs? Feel like it will be more robust that way, a change in the transaction will automatically be reflected here

@marcos-iov marcos-iov merged commit ed6d032 into feature/powpeg_validation_protocol-phase4 Jan 9, 2025
9 checks passed
@marcos-iov marcos-iov deleted the simplify_value_sent_in_fundTx branch January 9, 2025 15:56
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