mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-10 22:36:01 +00:00
clean up UnusedImport and Deprecated warnings (#5813)
This commit is contained in:
parent
6328c77778
commit
4fd3177dab
@ -2262,8 +2262,7 @@ proc createEth2Node*(rng: ref HmacDrbgContext,
|
|||||||
info "Adding privileged direct peer", peerId, address
|
info "Adding privileged direct peer", peerId, address
|
||||||
res
|
res
|
||||||
|
|
||||||
hostAddress = tcpEndPoint(
|
hostAddress = tcpEndPoint(config.listenAddress, config.tcpPort)
|
||||||
ValidIpAddress.init config.listenAddress, config.tcpPort)
|
|
||||||
announcedAddresses =
|
announcedAddresses =
|
||||||
if extIp.isNone() or extTcpPort.isNone(): @[]
|
if extIp.isNone() or extTcpPort.isNone(): @[]
|
||||||
else: @[tcpEndPoint(extIp.get(), extTcpPort.get())]
|
else: @[tcpEndPoint(extIp.get(), extTcpPort.get())]
|
||||||
|
@ -6,14 +6,10 @@
|
|||||||
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||||
|
|
||||||
import
|
import
|
||||||
std/parsecsv,
|
|
||||||
stew/[io2, byteutils], chronicles, confutils, snappy,
|
stew/[io2, byteutils], chronicles, confutils, snappy,
|
||||||
../beacon_chain/spec/datatypes/base,
|
../beacon_chain/spec/datatypes/base,
|
||||||
./ncli_common
|
./ncli_common
|
||||||
|
|
||||||
from std/os import fileExists
|
|
||||||
from std/strutils import parseBiggestInt, parseBiggestUInt
|
|
||||||
|
|
||||||
type
|
type
|
||||||
AggregatorConf = object
|
AggregatorConf = object
|
||||||
startEpoch {.
|
startEpoch {.
|
||||||
@ -159,6 +155,9 @@ proc advanceEpochs*(aggregator: var ValidatorDbAggregator, epoch: Epoch,
|
|||||||
|
|
||||||
when isMainModule:
|
when isMainModule:
|
||||||
import std/streams
|
import std/streams
|
||||||
|
from std/os import fileExists
|
||||||
|
from std/parsecsv import CsvParser, CsvRow, open, readRow
|
||||||
|
from std/strutils import parseBiggestInt, parseBiggestUInt
|
||||||
|
|
||||||
when defined(posix):
|
when defined(posix):
|
||||||
import system/ansi_c
|
import system/ansi_c
|
||||||
|
Loading…
x
Reference in New Issue
Block a user