Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vsuharnikov committed Nov 5, 2024
1 parent 05ab1aa commit c38d27c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ class WavesNodeContainer(
object WavesNodeContainer {
val ApiPort = 6869

val DefaultConfigFile = new File(s"$ConfigsDir/wavesnode/waves.conf")
val DefaultConfig = ConfigFactory.parseFile(DefaultConfigFile)
val AverageBlockDelay = DefaultConfig.getDuration("waves.blockchain.custom.genesis.average-block-delay").toScala
val GenesisTemplateFile = new File(s"$ConfigsDir/wavesnode/genesis-template.conf")
val GenesisTemplate = ConfigFactory.parseFile(GenesisTemplateFile)
val AverageBlockDelay = GenesisTemplate.getDuration("genesis-generator.average-block-delay").toScala

def mkKeyPair(seed: String, nonce: Int): SeedKeyPair =
SeedKeyPair(crypto.secureHash(Bytes.concat(Ints.toByteArray(nonce), seed.getBytes(StandardCharsets.UTF_8))))
Expand Down

0 comments on commit c38d27c

Please sign in to comment.