diff --git a/rskj-core/src/main/java/co/rsk/peg/BridgeStorageProvider.java b/rskj-core/src/main/java/co/rsk/peg/BridgeStorageProvider.java index 7c3307b9276..9a8c4faf562 100644 --- a/rskj-core/src/main/java/co/rsk/peg/BridgeStorageProvider.java +++ b/rskj-core/src/main/java/co/rsk/peg/BridgeStorageProvider.java @@ -556,7 +556,7 @@ public Optional getSvpFundTxSigned() { return Optional.of(svpFundTxSigned); } - // Return empty if the svp fund tx hash unsigned was explicitly set to null + // Return empty if the svp fund tx signed was explicitly set to null if (isSvpFundTxSignedSet) { return Optional.empty(); } diff --git a/rskj-core/src/test/java/co/rsk/peg/BridgeStorageProviderTest.java b/rskj-core/src/test/java/co/rsk/peg/BridgeStorageProviderTest.java index 1b1a575f98a..4ce7e867998 100644 --- a/rskj-core/src/test/java/co/rsk/peg/BridgeStorageProviderTest.java +++ b/rskj-core/src/test/java/co/rsk/peg/BridgeStorageProviderTest.java @@ -433,7 +433,7 @@ void saveSvpFundTxSigned_postLovell700_shouldSaveInStorage() { @Test void saveSvpFundTxSigned_postLovell700AndResettingToNull_shouldSaveNullInStorage() { - // Initially setting a valid hash in storage + // Initially setting a valid tx in storage bridgeStorageProvider.setSvpFundTxSigned(svpFundTx); bridgeStorageProvider.save(); @@ -583,17 +583,17 @@ void getSvpFundTxSigned_whenNullHashSaved_shouldReturnEmpty() { @Test void getSvpFundTxSigned_whenHashIsCached_shouldReturnTheCachedHash() { // Arrange - // Manually saving a hash in storage to then cache it + // Manually saving a tx in storage to then cache it repository.addStorageBytes( bridgeAddress, SVP_FUND_TX_SIGNED.getKey(), BridgeSerializationUtils.serializeBtcTransaction(svpFundTx) ); - // Calling method, so it retrieves the hash from storage and caches it + // Calling method, so it retrieves the tx from storage and caches it bridgeStorageProvider.getSvpFundTxSigned(); - // Setting a different hash in storage to make sure that when calling the method again it returns the cached one, not this one + // Setting a different tx in storage to make sure that when calling the method again it returns the cached one, not this one repository.addStorageBytes( bridgeAddress, SVP_FUND_TX_SIGNED.getKey(), @@ -611,17 +611,17 @@ void getSvpFundTxSigned_whenHashIsCached_shouldReturnTheCachedHash() { @Test void getSvpFundTxSigned_whenNullHashIsCached_shouldReturnNewSavedHash() { // Arrange - // Manually saving a null hash in storage to then cache it + // Manually saving a null tx in storage to then cache it repository.addStorageBytes( bridgeAddress, SVP_FUND_TX_SIGNED.getKey(), null ); - // Calling method, so it retrieves the hash from storage and caches it + // Calling method, so it retrieves the tx from storage and caches it bridgeStorageProvider.getSvpFundTxSigned(); - // Setting a hash in storage + // Setting a tx in storage repository.addStorageBytes( bridgeAddress, SVP_FUND_TX_SIGNED.getKey(), @@ -632,7 +632,7 @@ void getSvpFundTxSigned_whenNullHashIsCached_shouldReturnNewSavedHash() { Optional svpFundTxSigned = bridgeStorageProvider.getSvpFundTxSigned(); // Assert - // since null hash was directly saved and not set, method returns new saved hash + // since null tx was directly saved and not set, method returns new saved tx assertTrue(svpFundTxSigned.isPresent()); assertEquals(anotherSvpFundTx, svpFundTxSigned.get()); }