Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Jan 4, 2023
1 parent 4a7aacf commit 52aefe5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ final class AtePairing {
/**
*
* Pair of points on the curve
*
* @param p1 the point in Group1, not null
* @param p2 the point in Group2, not null
* @return GTPoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import org.junit.jupiter.api.Assertions.assertNotNull
import org.junit.jupiter.api.Assertions.assertNull
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import java.util.Collections
import java.util.concurrent.TimeUnit

@ExtendWith(BouncyCastleExtension::class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
package org.apache.tuweni.plumtree;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertTrue;

Expand Down
7 changes: 6 additions & 1 deletion pow/src/main/java/org/apache/tuweni/progpow/ProgPoW.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,12 @@ static void progPowLoop(
// The source lane's mix[0] value is used to ensure the last loop's DAG data feeds into this loop's address.
// dag_addr_base is which 256-byte entry within the DAG will be accessed
int dag_addr_base = mix[loop.intValue() % PROGPOW_LANES][0]
.mod(UInt32.valueOf(java.lang.Math.toIntExact(dagBytes / ((long) PROGPOW_LANES * (long) PROGPOW_DAG_LOADS * ((long) Integer.BYTES)))))
.mod(
UInt32
.valueOf(
java.lang.Math
.toIntExact(
dagBytes / ((long) PROGPOW_LANES * (long) PROGPOW_DAG_LOADS * ((long) Integer.BYTES)))))
.intValue();
//mix[loop.intValue()%PROGPOW_LANES][0].mod(UInt32.valueOf((int) dagBytes / (PROGPOW_LANES*PROGPOW_DAG_LOADS*4))).intValue();
for (int l = 0; l < PROGPOW_LANES; l++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,8 @@ public VertxRLPxService(
if (meter != null) {
this.connectionsCreatedCounter =
meter.counterBuilder("connections_created").setDescription("Number of connections created").build();
this.connectionsDisconnectedCounter = meter
.counterBuilder("connections_disconnected")
.setDescription("Number of connections disconnected")
.build();
this.connectionsDisconnectedCounter =
meter.counterBuilder("connections_disconnected").setDescription("Number of connections disconnected").build();
} else {
this.connectionsCreatedCounter = null;
this.connectionsDisconnectedCounter = null;
Expand Down

0 comments on commit 52aefe5

Please sign in to comment.