nimbus-eth1/nimbus/sync/protocol/eth/eth-variables.mk
Jordan Hrycaj dac7a2cbe1
Providing eth68 stubs while setting eth67 as default (#2129)
* 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
2024-04-12 11:21:17 +00:00

49 lines
1.6 KiB
Makefile

# Copyright (c) 2024 Status Research & Development GmbH. Licensed under
# either of:
# - Apache License, version 2.0
# - MIT license
# at your option. This file may not be copied, modified, or distributed except
# according to those terms.
# GNU-Makefile include
#
# When running make, the instructions here will define the variable
# "NIM_ETH_PARAMS" which should be appended to the nim compiler options.
#
# This makefile snippet supports multi-protocol arguments as in
# "ENABLE_ETH_VERSION=66:67:999" where available protocol versions are
# extracted and processed. In this case, protocol version 999 will be
# silently ignored.
# default wire protocol, triggered by empty/unset variable or zero value
ifeq ($(if $(ENABLE_ETH_VERSION),$(ENABLE_ETH_VERSION),0),0)
NIM_ETH_PARAMS := $(NIM_ETH_PARAMS) -d:eth67_enabled
endif
# parse list for supported items
ifneq ($(findstring :66:,:$(ENABLE_ETH_VERSION):),)
NIM_ETH_PARAMS := $(NIM_ETH_PARAMS) -d:eth66_enabled
endif
ifneq ($(findstring :67:,:$(ENABLE_ETH_VERSION):),)
NIM_ETH_PARAMS := $(NIM_ETH_PARAMS) -d:eth67_enabled
endif
ifneq ($(findstring :68:,:$(ENABLE_ETH_VERSION):),)
NIM_ETH_PARAMS := $(NIM_ETH_PARAMS) -d:eth68_enabled
endif
# There must be at least one protocol version.
ifeq ($(NIM_ETH_PARAMS),)
$(error Unacceptable protocol versions in "ENABLE_ETH_VERSION=$(ENABLE_ETH_VERSION)")
endif
# ------------
# chunked messages enabled by default, use ENABLE_CHUNKED_RLPX=0 to disable
ifneq ($(if $(ENABLE_CHUNKED_RLPX),$(ENABLE_CHUNKED_RLPX),1),0)
NIM_ETH_PARAMS := $(NIM_ETH_PARAMS) -d:chunked_rlpx_enabled
endif
# End