Skip to content

Commit

Permalink
Update method visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
nagarev committed Nov 22, 2022
1 parent 3de7019 commit e6fedb2
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions rskj-core/src/main/java/co/rsk/RskContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package co.rsk;

import co.rsk.bitcoinj.core.NetworkParameters;
Expand Down Expand Up @@ -417,6 +416,16 @@ public synchronized ReceivedTxSignatureCache getReceivedTxSignatureCache() {
return receivedTxSignatureCache;
}

public BlockTxSignatureCache getBlockTxSignatureCache() {
checkIfNotClosed();

if (blockTxSignatureCache == null) {
blockTxSignatureCache = new BlockTxSignatureCache(getReceivedTxSignatureCache());
}

return blockTxSignatureCache;
}

public synchronized RepositoryLocator getRepositoryLocator() {
checkIfNotClosed();

Expand Down Expand Up @@ -1447,14 +1456,6 @@ private void initializeNativeLibs() {
AbstractAltBN128.init();
}

private BlockTxSignatureCache getBlockTxSignatureCache() {
if (blockTxSignatureCache == null) {
blockTxSignatureCache = new BlockTxSignatureCache(getReceivedTxSignatureCache());
}

return blockTxSignatureCache;
}

private KeyValueDataSource getBlocksBloomDataSource() {
if (this.blocksBloomDataSource == null) {
this.blocksBloomDataSource = this.buildBlocksBloomDataSource();
Expand Down

0 comments on commit e6fedb2

Please sign in to comment.