Skip to content

Commit

Permalink
Remove unused method from BridgeSupport
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-iov committed Aug 9, 2024
1 parent 953c0d5 commit c120672
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions rskj-core/src/main/java/co/rsk/peg/BridgeSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,6 @@ InputStream getCheckPoints() {
return checkpoints;
}

@VisibleForTesting
ActivationConfig.ForBlock getActivations() {
return this.activations;
}

public void save() throws IOException {
provider.save();
feePerKbSupport.save();
Expand Down
10 changes: 0 additions & 10 deletions rskj-core/src/test/java/co/rsk/peg/BridgeSupportTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,6 @@ void setUpOnEachTest() {
federationSupportBuilder = new FederationSupportBuilder();
}

@Test
void activations_is_set() {
ActivationConfig.ForBlock activations = mock(ActivationConfig.ForBlock.class);
when(activations.isActive(ConsensusRule.RSKIP124)).thenReturn(true);

BridgeSupport bridgeSupport = bridgeSupportBuilder.withActivations(activations).build();

assertTrue(bridgeSupport.getActivations().isActive(ConsensusRule.RSKIP124));
}

@Test
void getFeePerKb() {
Coin feePerKb = Coin.valueOf(10_000L);
Expand Down

0 comments on commit c120672

Please sign in to comment.