deploy: 135b7209dd99dadaef13a156fed5a24fc2b2ab3b

This commit is contained in:
rymnc 2022-09-06 12:24:31 +00:00
parent a9ac29b99b
commit f131ab157d
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ when not(compileOption("threads")):
{.push raises: [Defect].}
import std/[tables, strformat, strutils, times, json, options]
import std/[tables, strformat, strutils, times, json, options, random]
import confutils, chronicles, chronos, stew/shims/net as stewNet,
eth/keys, bearssl, stew/[byteutils, endians2, results],
nimcrypto/pbkdf2
@ -456,7 +456,7 @@ proc processInput(rfd: AsyncFD, rng: ref BrHmacDrbgContext) {.async.} =
storenode = some(parseRemotePeerInfo(conf.storenode))
elif discoveredNodes.len > 0:
echo "Store enabled, but no store nodes configured. Choosing one at random from discovered peers"
storenode = some(discoveredNodes[0])
storenode = some(discoveredNodes[rand(0..len(discoveredNodes) - 1)])
if storenode.isSome():
# We have a viable storenode. Let's query it for historical messages.

View File

@ -2,7 +2,7 @@
# libtool - Provide generalized library-building support services.
# Generated automatically by config.status (libbacktrace) version-unused
# Libtool was configured on host fv-az245-630:
# Libtool was configured on host fv-az220-175:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,