mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-10 20:36:31 +00:00
f20f20f962
* Enable `snap/1` accounts range service * Allow to change the garbage collector to `boehm` as a Makefile option. why: There is still an unsolved memory corruption problem that might be related to the standard `gc`. It seemingly goes away if the `gc` is changed to `boehm`. Specifying another `gc` on the make level simplifies debugging and development. * Code cosmetics details: * updated exception annotations * extracted `worker_desc.nim` from `full/worker.nim` * etc. * Implement option to state a sync modifier file why: This allows to specify extra sync type specific options which might change over time. This file is regularly checked for updates. * Implement a threshold when to suspend full syncing why: For a test scenario, a full sync beep may work as a local snap server. There is no need to download the full block chain. details: The file containing the pivot specs is specified by the `--sync-ctrl-file` option. It is regularly parsed for updates.
33 lines
842 B
Nim
33 lines
842 B
Nim
# Nimbus
|
|
# Copyright (c) 2018 Status Research & Development GmbH
|
|
# Licensed under either of
|
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
|
# http://www.apache.org/licenses/LICENSE-2.0)
|
|
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
|
|
# http://opensource.org/licenses/MIT)
|
|
# at your option. This file may not be copied, modified, or distributed except
|
|
# according to those terms.
|
|
|
|
func vmName(): string =
|
|
when defined(evmc_enabled):
|
|
"evmc"
|
|
else:
|
|
"nimvm"
|
|
|
|
const
|
|
VmName* = vmName()
|
|
warningMsg = block:
|
|
var rc = "*** Compiling with " & VmName
|
|
when defined(legacy_eth66_enabled):
|
|
rc &= ", legacy-eth/66"
|
|
when defined(chunked_rlpx_enabled):
|
|
rc &= ", chunked-rlpx"
|
|
when defined(boehmgc):
|
|
rc &= ", boehm/gc"
|
|
rc &= " enabled"
|
|
rc
|
|
|
|
{.warning: warningMsg.}
|
|
|
|
{.used.}
|