-
Notifications
You must be signed in to change notification settings - Fork 267
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
Conversation
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
…elated to activations
…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
…deemScriptBuilder
…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
…uilderUtilsTest. #Fix tests after rebase
…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
… to PendingFederation and FederationMember. Move respective tests from BridgeSerializationUtilsTest to PendingFederationTest and FederationMemberTest. Rename methods to be clearer.
…onstructor receives
…args and erp values. Use it whenever possible.
…e some variables to be clearer. Remove federationArgs field from Federation and so getArgs method.
…erationArgs and ErpFederationArgs classes
…fy tests using them
…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
@@ -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
PegUtilsLegacy.txIsFromOldFederation
@@ -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
PegUtilsLegacy.isPegOutTx
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
PegUtilsLegacy.isPegOutTx
@@ -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
PegUtilsLegacy.isPegOutTx
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
Description
Motivation and Context
How Has This Been Tested?
Types of changes
Checklist: