Skip to content

Commit b7c51e4

Browse files
committed
Correct test
1 parent 5339efb commit b7c51e4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/java/co/rsk/federate/BtcToRskClientTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3650,6 +3650,8 @@ void updateBridgeBtcCoinbaseTransactions_afterReorg_shouldNotSendObsoleteBlockHa
36503650
setUpTx(activeFedClient, segwitPeginBtcTx, blockWithSegwitPeginIndex);
36513651
Block blockWithPeginBeforeReorg = blocks[blockWithSegwitPeginIndex].getHeader();
36523652
Sha256Hash blockWithPeginBeforeReorgHash = blockWithPeginBeforeReorg.getHash();
3653+
CoinbaseInformation coinbaseInformationBeforeReorg = getCoinbaseInformation(blockWithPeginBeforeReorgHash);
3654+
36533655
activeFedClient.updateBridgeBtcBlockchain();
36543656
updateBridgeBestChainHeight();
36553657
activeFedClient.updateBridgeBtcCoinbaseTransactions();
@@ -3682,7 +3684,6 @@ void updateBridgeBtcCoinbaseTransactions_afterReorg_shouldNotSendObsoleteBlockHa
36823684
// assert
36833685
// obsolete info should not be present in the map any more and tx shouldn't be sent
36843686
assertBlockWithTxHashIsNotInCoinbaseInformationMap(MAINNET_PARAMS, btcToRskActiveFedClientFileStorage, blockWithPeginBeforeReorg);
3685-
CoinbaseInformation coinbaseInformationBeforeReorg = getCoinbaseInformation(blockWithPeginBeforeReorgHash);
36863687
assertCoinbaseTxNotSentToBridge(coinbaseInformationBeforeReorg);
36873688

36883689
// correct info should be present in the map and tx should be sent

0 commit comments

Comments
 (0)