mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-10 12:26:02 +00:00
dac7a2cbe1
* Suspend `snap` sync tests why: Snap needs to be updated. While this is not done, tests are obsolete and eat up memory resources only * Suspend rocks DB timing tests why: Currently of no use for general test suite. * Mothballed unused evm code for opportunistic DB handling why: Needs to be refactored anyway. Uses hard coded protocol dependencies. * Update `eth` protocol configuration why: + new upcoming version `eth68` + prepare for eth-multi protocol stack support * Strip the `legacy_` prefix from eth66 compiler flag variable why: Being it is an oddity having `eth67_enabled`, `eth68_enabled`, and `legacy_eth_66_enabled`. * Providing eth68 stubs * Fix copyright year * Fix eth68 stub method name
38 lines
1.3 KiB
Nim
38 lines
1.3 KiB
Nim
# Nimbus
|
|
# Copyright (c) 2024 Status Research & Development GmbH
|
|
# Licensed and distributed under either of
|
|
# * MIT license (license terms in the root directory or at
|
|
# https://opensource.org/licenses/MIT).
|
|
# * Apache v2 license (license terms in the root directory or at
|
|
# https://www.apache.org/licenses/LICENSE-2.0).
|
|
# at your option. This file may not be copied, modified, or distributed
|
|
# except according to those terms.
|
|
|
|
## Provision of `eth` versions list at compile time
|
|
##
|
|
## Note: This file allows read the `ethVersions` list at each level of the
|
|
## source code import hierarchy. It needs to be *included* though if
|
|
## `ethVersions` needs to be available at compile time (as of
|
|
## NIM 1.6.18). This allows to construct directives like:
|
|
## `when 66 in ethVersions: ..`
|
|
##
|
|
|
|
const
|
|
buildEthVersions = block:
|
|
var rc: seq[int]
|
|
when defined(eth66_enabled): rc.add 66
|
|
when defined(eth67_enabled): rc.add 67
|
|
when defined(eth68_enabled): rc.add 68
|
|
rc
|
|
|
|
# Default protocol only
|
|
when buildEthVersions.len == 0:
|
|
const ethVersions* = @[67]
|
|
## Compile time list of available/supported eth versions
|
|
else:
|
|
# One or more protocols
|
|
const ethVersions* = buildEthVersions
|
|
## Compile time list of available/supported eth versions
|
|
|
|
# End
|