-
Notifications
You must be signed in to change notification settings - Fork 269
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
ARROWHEAD-6.3.1-rc -> master merge #2568
Conversation
Add unit test for before and after rskip434 Add fix for receiveHeaders too Replace too much work check with height check Add tests for receiveHeaders and refactor Correct test name
Refactor and use value from bridge constants
Refactor Put verification inside try to avoid npe
…_config Add arrowhead631 config. Adapt tests
Chainwork fix
Bitcoinj thin dependency update
chore(logging): refactor and improve logging
…ad631-master-merge
block849137 = new BtcBlock(bridgeMainnetConstants.getBtcParams(), HexUtils.stringHexToByteArray(block849137Header)); | ||
|
||
String blockWithTooMuchWorkHeader = "006001207ca158816ffc9d45b9ecd6a49ffbf3038f3646cf13fc01000000000000000000e0182ce7cc10db785b5fb2fb4314053f5b12cd6116168797cb461aa339fc725078b87766255d0317ba5261e2"; | ||
blockWithTooMuchWork = new BtcBlock(bridgeMainnetConstants.getBtcParams(), HexUtils.stringHexToByteArray(blockWithTooMuchWorkHeader)); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note test
BtcBlock.BtcBlock
btcBlockStoreFactory.newInstance(repository, bridgeMainnetConstants, bridgeStorageProviderPostRSKIP434, activationsPostRSKIP434); | ||
|
||
String block849134Header = "0080b92c24f123130ae29e899f0cab72653722e54cdf3b30445202000000000000000000c72ead65a3b78ab637d1876c00414a77e47bcc5b52667ac1e573633563bea5a695aa7766255d031728d182a8"; | ||
block849134 = new BtcBlock(bridgeMainnetConstants.getBtcParams(), HexUtils.stringHexToByteArray(block849134Header)); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note test
BtcBlock.BtcBlock
block849134 = new BtcBlock(bridgeMainnetConstants.getBtcParams(), HexUtils.stringHexToByteArray(block849134Header)); | ||
|
||
String block849135Header = "00004020bf67910b5d3996ee594848b482ee84d0e28c97a9a2d601000000000000000000865e218552bb92df36c962f5163e84a6c2542584fb36be2fa8b2a4246c73a701f1ae7766255d031791836b22"; | ||
block849135 = new BtcBlock(bridgeMainnetConstants.getBtcParams(), HexUtils.stringHexToByteArray(block849135Header)); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note test
BtcBlock.BtcBlock
block849135 = new BtcBlock(bridgeMainnetConstants.getBtcParams(), HexUtils.stringHexToByteArray(block849135Header)); | ||
|
||
String block849136Header = "0000003a796f8b7a9d6ba6e13064e7c64e94570f877170262f1f0200000000000000000036b2ab17565a24a9be4626ca801cb31f91232034ba848295475f931a58dd5446e5b07766255d03173b01a491"; | ||
block849136 = new BtcBlock(bridgeMainnetConstants.getBtcParams(), HexUtils.stringHexToByteArray(block849136Header)); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note test
BtcBlock.BtcBlock
block849136 = new BtcBlock(bridgeMainnetConstants.getBtcParams(), HexUtils.stringHexToByteArray(block849136Header)); | ||
|
||
String block849137Header = "00e00820925b77c9ff4d0036aa29f3238cde12e9af9d55c34ed30200000000000000000032a9fa3e12ef87a2327b55db6a16a1227bb381db8b269d90aa3a6e38cf39665f91b47766255d0317c1b1575f"; | ||
block849137 = new BtcBlock(bridgeMainnetConstants.getBtcParams(), HexUtils.stringHexToByteArray(block849137Header)); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note test
BtcBlock.BtcBlock
blockWithTooMuchWork = new BtcBlock(bridgeMainnetConstants.getBtcParams(), HexUtils.stringHexToByteArray(blockWithTooMuchWorkHeader)); | ||
|
||
String block849139Header = "00a0b625ffa2f7cbf95219fc74c3db38f84ae265784bc1417c71020000000000000000008e5b319a229376089f4a7b77c90ed90ac19a0532fc4c62426f5a5931ee7e3e8dd2c67766255d03171e91a015"; | ||
block849139 = new BtcBlock(bridgeMainnetConstants.getBtcParams(), HexUtils.stringHexToByteArray(block849139Header)); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note test
BtcBlock.BtcBlock
@@ -938,10 +938,29 @@ | |||
BridgeSupport bridgeSupport = getBridgeSupport(provider, track, mockFactory, activations); | |||
BtcBlockChain btcBlockChain = new SimpleBlockChain(btcContext, btcBlockStore); | |||
TestUtils.setInternalState(bridgeSupport, "btcBlockChain", btcBlockChain); | |||
|
|||
Sha256Hash merkleRoot = PegTestUtils.createHash(2); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note test
PegTestUtils.createHash
co.rsk.bitcoinj.core.BtcBlock prevBlock = new co.rsk.bitcoinj.core.BtcBlock( | ||
btcParams, | ||
1, | ||
PegTestUtils.createHash(1), // hash from its previous block |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note test
PegTestUtils.createHash
|
||
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
class BytesSliceTest { |
Check notice
Code scanning / CodeQL
Unused classes and interfaces Note test
|
||
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
class BytesTest { |
Check notice
Code scanning / CodeQL
Unused classes and interfaces Note test
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
pipeline:run |
Description
Motivation and Context
How Has This Been Tested?
Types of changes
Checklist:
fed:arrowhead631-master-merge