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

Create new Federation and the complete process until it is confirmed and activated #2925

Open
wants to merge 6 commits into
base: federation_change_federeration_integration
Choose a base branch
from

Conversation

apancorb
Copy link
Contributor

@apancorb apancorb commented Jan 10, 2025

Description

The idea is to provide building blocks that can be reused while creating new tests. This focuses on creating a new active and retiring federation.

@apancorb apancorb self-assigned this Jan 10, 2025
Copy link

Dependency Review

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

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

@apancorb apancorb changed the title Fix/powpeg migration tests common path Create new Federation and the complete process until it is confirmed and activated Jan 10, 2025
@apancorb apancorb marked this pull request as ready for review January 10, 2025 15:33
@apancorb apancorb requested a review from a team as a code owner January 10, 2025 15:33
private FederationSupportImpl federationSupport;
private LockingCapSupport lockingCapSupport;
private BridgeSupport bridgeSupport;

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 put the List<Triple<BtcECKey, ECKey, ECKey>> variables after this? Those are much more complex initializations. Let's put them last so they are not in the middle of simple variable declarations.

case P2SH_ERP -> {
originalFederation = FederationFactory.buildP2shErpFederation(
originalFederationArgs, erpPubKeys, activationDelay);
// TODO: CHECK REDEEMSCRIPT
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this TODO be here still?

private BridgeSupport bridgeSupport;

@Test
void whenAllActivationsArePresentAndFederationChanges_shouldCreateNewActiveFederation() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
void whenAllActivationsArePresentAndFederationChanges_shouldCreateNewActiveFederation() throws Exception {
void whenAllActivationsArePresentAndFederationChanges_shouldMakeTheProposedFederationTheNewActiveFederation() throws Exception {

What do you think?

Copy link
Contributor

@jeremy-then jeremy-then left a comment

Choose a reason for hiding this comment

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

LGTM.

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.

2 participants