-
Notifications
You must be signed in to change notification settings - Fork 25
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
Update onProposedFederationChange in order to register SVP spend tx in the Bridge #365
Update onProposedFederationChange in order to register SVP spend tx in the Bridge #365
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Manifest Files |
5244d90
to
931420f
Compare
111ea90
to
57bb818
Compare
… can register the svp spend tx
… logic to register svp spend tx
487f63b
to
e76a824
Compare
// add proposed federation to active btc to rsk client so | ||
// it can register svp spend tx in the bridge | ||
bitcoinWrapper.addFederationListener(newProposedFederation, btcToRskClientActive); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the main and only change of the PR, the rest are small refactors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this done already in btcReleaseClient.start
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope
Quality Gate passedIssues Measures |
815a509
into
feat/powpeg_validation_protocol-phase4
Description
With this approach we add the
proposedFederation
to the list of watched federations that theBitcoinWrapper
listens to. Since the svp spend tx will be considered as a peg-out from the perspective of theBitcoinWrapper
federation listener it will allow it to be registered with no problem.Motivation and Context
https://github.com/rsksmart/RSKIPs/blob/master/IPs/RSKIP419.md
How Has This Been Tested?
This was tested in Regtest, and complete the SVP protocol:
2024-12-11-11:49:16.930 INFO [c.r.p.BridgeSupport] [registerSvpSpendTx] Going to commit the proposed federation.
Types of changes
Checklist: