Skip to content

Mtmu integration#3608

Draft
julianlen wants to merge 61 commits into
feat/calculate-tx-size-more-accuratefrom
mtmu-integration
Draft

Mtmu integration#3608
julianlen wants to merge 61 commits into
feat/calculate-tx-size-more-accuratefrom
mtmu-integration

Conversation

@julianlen

Copy link
Copy Markdown
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:

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Dependency Review

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

Scanned Files

None

@julianlen julianlen changed the base branch from feat/calculate-tx-size-more-accurate to master July 1, 2026 21:16
ReleaseTransactionBuilder.BuildResult migrationTransactionResult = createMigrationTransaction(retiringFederationWallet, activeFederationAddress);
ReleaseTransactionBuilder.BuildResult migrationTransactionResult = activations.isActive(RSKIP455) ?
createMigrationTransaction(retiringFederationWallet, activeFederationAddress) :
createMigrationTransactionLegacy(retiringFederationWallet, activeFederationAddress);
if (!activations.isActive(ConsensusRule.RSKIP271)) {
return BridgeUtilsLegacy.calculatePegoutTxSize(activations, federation, inputsCount, outputsCount);
if (!activations.isActive(ConsensusRule.RSKIP378)) {
return BridgeUtilsLegacy.simulatePegoutTxSize(activations, federation, inputsCount, outputsCount);
Federation federation = FederationFactory.buildStandardMultiSigFederation(federationArgs);

int pegoutTxSize = BridgeUtilsLegacy.calculatePegoutTxSize(activations, federation, 2, 2);
int pegoutTxSize = BridgeUtilsLegacy.simulatePegoutTxSize(activations, federation, 2, 2);
Federation federation = FederationFactory.buildStandardMultiSigFederation(federationArgs);

Assertions.assertThrows(DeprecatedMethodCallException.class, () -> BridgeUtilsLegacy.calculatePegoutTxSize(activations, federation, 2, 2));
Assertions.assertThrows(DeprecatedMethodCallException.class, () -> BridgeUtilsLegacy.simulatePegoutTxSize(activations, federation, 2, 2));
Federation federation = FederationFactory.buildStandardMultiSigFederation(federationArgs);

Assertions.assertThrows(IllegalArgumentException.class, () -> BridgeUtilsLegacy.calculatePegoutTxSize(activations, federation, 0, 0));
Assertions.assertThrows(IllegalArgumentException.class, () -> BridgeUtilsLegacy.simulatePegoutTxSize(activations, federation, 0, 0));
}

// Add outputs
Address randomAddress = PegTestUtils.createRandomP2PKHBtcAddress(networkParameters);
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

RSKj Core Automated Tests

rskj node built from mtmu-integration.

Suite Result Branch tested Run
JSON-RPC ✅ success main run
Hardhat ✅ success main run
K6 ✅ success main run

@julianlen julianlen changed the base branch from master to feat/calculate-tx-size-more-accurate July 2, 2026 21:04
@julia-zack julia-zack force-pushed the feat/calculate-tx-size-more-accurate branch from ce13402 to 989935a Compare July 3, 2026 14:47
julianlen added 24 commits July 3, 2026 14:40
…FedsWereBuiltAsExpected for pre and post rskip455
…orVETIVER for the first time it is created the bridgeStorageProvider for vetiver
julianlen and others added 28 commits July 3, 2026 14:40
…anged buildMigrationTransaction to receive a list of values to migrate
…onstants instead of Bridge support, besides moved the migration outputs calculation to BridgeUtils, turned public and tested it. Also the calculation for the mtmu threshold was moved to BridgeUtils
…it name getMigrationTransactionOutputsValues
…rationTransactionOutputsValues and tested. Previous tests names were improved
…n exception, now it returns the value and migrateFunds logs and returns if the result is other than SUCCESS
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…ionValueForMultipleOutputs it returns expectedMigrationValue as output
… rskip455 such that from rskip455 activation on the method hasMinimumFundsToMigrate is not evaluated anymore
@sonarqubecloud

sonarqubecloud Bot commented Jul 3, 2026

Copy link
Copy Markdown

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