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

Merge master -> rskip351+rskip144 #2251

Merged
merged 49 commits into from
Feb 7, 2024
Merged

Merge master -> rskip351+rskip144 #2251

merged 49 commits into from
Feb 7, 2024

Conversation

Vovchyk
Copy link
Contributor

@Vovchyk Vovchyk commented Feb 7, 2024

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:

Vovchyk and others added 30 commits January 16, 2024 15:20
Made bucketSize value configurable
…onfigsForTest helper

- Got rid of sigHash parameter when testing null values
- Got rid of no needed comments
- Renamed BRIDGE_BTC_TX_SIG_HASH_KEY to BRIDGE_BTC_TX_SIG_HASH
…nstance variable so no need to be creating these variables for each test that needs it.

- Fix some tests
…Builder to its constructor. Remove LegacyErpFederation and P2shErpFederation. Add activations and network parameters logic to the NonStandard builders
…or each non-standard fed created with each non-standard builder
… to use activations logic. Rename defineErpRedeemScriptBuilder to defineNonStandardErpRedeemScriptBuilder.
…erFactory. Move validations methods from builders to a utils class. Rename standard to default in erp context. Split some classes, errors and methods to be clearer and more scalable. Remove regtest validation from NonStandard builder factory class
…Rename validateEmergencyKeys method. Make methods non-static when not needed. Rename ErpRedeemScriptBuilderCreationException to FederationCreationException. Fix typo. Move removeOpCheckMultisig method to builder utils. Delete unused Standardness file
…tP2SHScript and getFederationDefaultRedeemScript methods to avoid repetition
…r methods to make them cleaner. Make fields private in Legacy and P2sh tests. Remove TODO comment
…Sig check for isSentToStandardMultiSig in builder utils.
…iptCreationException class to avoid circular dependency with peg package
…between redeem script and format version. Adapt to that change. Move Federation related files to new federation package
…to it. Move FederationMember to federation package to avoid circular dependency. Rename int i to int version to use meaningful names
…ge to avoid circular dependency with peg package
…ss so it can be moved into federation package. Move PendingFederation class into federation package
julia-zack and others added 19 commits January 31, 2024 11:08
… to PendingFederation and FederationMember. Move respective tests from BridgeSerializationUtilsTest to PendingFederationTest and FederationMemberTest. Rename methods to be clearer.
…args and erp values. Use it whenever possible.
…e some variables to be clearer. Remove federationArgs field from Federation and so getArgs method.
…r-integration

Rebase federations new refactor integration
Used fixed buffer allocator for udp channel
…covery

Retry connection to bootstrap nodes in discovery after failed attempt
@Vovchyk Vovchyk requested a review from a team as a code owner February 7, 2024 14:09
@@ -2116,7 +2119,7 @@

FederationTestUtils.addSignatures(oldFederation, REGTEST_OLD_FEDERATION_PRIVATE_KEYS, migrationTx);

Assertions.assertTrue(PegUtilsLegacy.txIsFromOldFederation(migrationTx, oldFederation.address));
Assertions.assertTrue(PegUtilsLegacy.txIsFromOldFederation(migrationTx, oldFederation.getAddress()));

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
PegUtilsLegacy.txIsFromOldFederation
should be avoided because it has been deprecated.
@@ -2003,8 +1935,8 @@
assertFalse(isPegOutTx(pegOutTx1, activations, defaultFederation.getP2SHScript(), standardFederation.getP2SHScript()));
assertFalse(isPegOutTx(pegOutTx1, activations, standardFederation.getP2SHScript()));

assertFalse(isPegOutTx(pegOutTx1, Collections.singletonList(erpFederation), activations));
assertFalse(isPegOutTx(pegOutTx1, activations, erpFederation.getStandardP2SHScript()));
assertFalse(isPegOutTx(pegOutTx1, Collections.singletonList(nonStandardErpFederation), activations));

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
PegUtilsLegacy.isPegOutTx
should be avoided because it has been deprecated.
assertFalse(isPegOutTx(pegOutTx1, Collections.singletonList(erpFederation), activations));
assertFalse(isPegOutTx(pegOutTx1, activations, erpFederation.getStandardP2SHScript()));
assertFalse(isPegOutTx(pegOutTx1, Collections.singletonList(nonStandardErpFederation), activations));
assertFalse(isPegOutTx(pegOutTx1, activations, nonStandardErpFederation.getDefaultP2SHScript()));

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
PegUtilsLegacy.isPegOutTx
should be avoided because it has been deprecated.
@@ -2017,8 +1949,8 @@
assertTrue(isPegOutTx(pegOutTx1, activations, defaultFederation.getP2SHScript(), standardFederation.getP2SHScript()));
assertFalse(isPegOutTx(pegOutTx1, activations, standardFederation.getP2SHScript()));

assertTrue(isPegOutTx(pegOutTx1, Collections.singletonList(erpFederation), activations));
assertTrue(isPegOutTx(pegOutTx1, activations, erpFederation.getStandardP2SHScript()));
assertTrue(isPegOutTx(pegOutTx1, Collections.singletonList(nonStandardErpFederation), activations));

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
PegUtilsLegacy.isPegOutTx
should be avoided because it has been deprecated.
assertTrue(isPegOutTx(pegOutTx1, Collections.singletonList(erpFederation), activations));
assertTrue(isPegOutTx(pegOutTx1, activations, erpFederation.getStandardP2SHScript()));
assertTrue(isPegOutTx(pegOutTx1, Collections.singletonList(nonStandardErpFederation), activations));
assertTrue(isPegOutTx(pegOutTx1, activations, nonStandardErpFederation.getDefaultP2SHScript()));

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
PegUtilsLegacy.isPegOutTx
should be avoided because it has been deprecated.
@Vovchyk Vovchyk merged commit 964eb45 into rskip351+rskip144 Feb 7, 2024
11 of 12 checks passed
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.

5 participants