Skip to content

Conversation

@julianlen
Copy link
Contributor

Description

Motivation and Context

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • Tests for the changes have been added (for bug fixes / features)
  • Requires Activation Code (Hard Fork)
  • Other information:

julianlen and others added 30 commits December 9, 2025 14:47
…utputs how the retiring fed is obtained and the exception thrown
…ptional

Changed getRetiringFederation so it returns an optional
…turnsOptional

changed getRetiringFederationWallet() so it returns an Optional
…factor

changed getActiveFederationBtcUTXOs to replace the switch with an if
…t depending on the federation age is before/now/after migration age, finally moved some logs to FederationSupport
…Support, added test and performed some renamings
…eting the parameter and therefore, deleting any reference to an activeFederation in processFundsMigration, same with isInMigrationAge. Besides, changed the switch getActiveFederation
julianlen and others added 12 commits December 17, 2025 15:31
…ted the booleans that logs if is past migraiton age or in migration age, besides I added the fed address in the log
Move isInMigrationAge and isPastMigrationAge to FederationSupport
…made in buildWithConfiguration. So, from now on, createMigrationTransaction returns a BuildResult. Besides, BuildResult is static because it improves memory management, and it doesn't need to access any instance variable of its outer class
…urns-BuildResult

createMigrationTransaction returns a BuildResult
ReleaseTransactionBuilder.BuildResult result = txBuilder.buildMigrationTransaction(expectedMigrationValue, destinationAddress);

switch (result.getResponseCode()) {
switch (result.responseCode()) {

Check warning

Code scanning / CodeQL

Missing enum case in switch Warning

Switch statement does not have a case for
COULD_NOT_ADJUST_DOWNWARDS
or
EXCEED_MAX_TRANSACTION_SIZE
.

Copilot Autofix

AI 1 day ago

Copilot could not generate an autofix suggestion

Copilot could not generate an autofix suggestion for this alert. Try pushing a new commit or if the problem persists contact support.

julianlen and others added 16 commits December 19, 2025 12:28
…-optional

turn getRetiringFederationThreshold to return an optional
…onal

turn getRetiringFederationSize to return an optional
…hBasedOnActivation and reuse the method in getFederationCreationTime
…ime-optional

turn getRetiringFederationCreationTime to return an optional
…lockNumber-optional

Turn retiring federation creation block number optional
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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