mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-28 18:51:45 +01:00
make sure the pow functions are static in java
This commit is contained in:
parent
b90aac496e
commit
5a3c821da4
@ -24,6 +24,7 @@ import com.vitorpamplona.quartz.nip01Core.HexKey
|
|||||||
|
|
||||||
class PoWRankProcessor {
|
class PoWRankProcessor {
|
||||||
companion object {
|
companion object {
|
||||||
|
@JvmStatic
|
||||||
fun compute(
|
fun compute(
|
||||||
id: HexKey,
|
id: HexKey,
|
||||||
commitedPoW: Int?,
|
commitedPoW: Int?,
|
||||||
@ -41,6 +42,7 @@ class PoWRankProcessor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JvmStatic
|
||||||
fun calculatePowRankOf(id: HexKey): Int {
|
fun calculatePowRankOf(id: HexKey): Int {
|
||||||
var rank = 0
|
var rank = 0
|
||||||
for (i in 0..id.length) {
|
for (i in 0..id.length) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user