mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-27 20:45:48 +00:00
c123e1eb93
* Using `IntervalSet` type data for `LeafRange` * Updated log ticker * Update to `eth67` details: Disabled by default, use `ENABLE_LEGACY_ETH66=0` to enable No support for `Get/NodeData` dialogue via eth, anymore * Dissolved fetch/common.nim details; the log/ticker part becomes ticker.nim the interval range management is merged into fetch.nim * Updated account scheduler why: The previous scheduler fetched each account once (for different state roots.) The updated scheduler re-calibrates after a change of the state root and potentially (until told otherwise) fetches all possible accounts. * Fix `high(P)` fringe cases in `IntervalSet` handling why: The `high(P)` value for a point type `P` cannot be represented with half open intervals `[a,b)` for a,b points of `P`. So this single value needs extra treatment which was slightly wrong. * Updated docu/comments also: rebased * Update scheduler details: Change the `pivot` management when creating new accounts lists. It is strictly increasing (and wrapping around) depending on last updated accounts list.
33 lines
829 B
Nim
33 lines
829 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"
|
|
elif defined(vm2_enabled):
|
|
"vm2"
|
|
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"
|
|
rc &= " enabled"
|
|
rc
|
|
|
|
{.warning: warningMsg.}
|
|
|
|
{.used.}
|