-
Notifications
You must be signed in to change notification settings - Fork 268
Migration-transaction-multiple-utxos integration #3423
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
base: master
Are you sure you want to change the base?
Conversation
…gFederationOptional
…utputs how the retiring fed is obtained and the exception thrown
… response codes are shorter
… empty, having two asserts is enough
…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
…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
COULD_NOT_ADJUST_DOWNWARDS
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.
…of the FEDERATION_NON_EXISTENTs
…-optional turn getRetiringFederationThreshold to return an optional
…of the FEDERATION_NON_EXISTENTs
…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
|




Description
Motivation and Context
How Has This Been Tested?
Types of changes
Checklist: