Skip to content

Commit 3df62ff

Browse files
author
pmmiranda
committed
renamed references from unified to nimbus
1 parent b0c99da commit 3df62ff

File tree

12 files changed

+40
-49
lines changed

12 files changed

+40
-49
lines changed

Makefile

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ VERIF_PROXY_OUT_PATH ?= build/libverifproxy/
104104
update \
105105
nimbus \
106106
nimbus_execution_client \
107-
nimbus_unified \
108107
fluffy \
109108
nimbus_verified_proxy \
110109
libverifproxy \
@@ -214,9 +213,6 @@ nimbus_execution_client: | build deps rocksdb
214213
echo -e $(BUILD_MSG) "build/nimbus_execution_client" && \
215214
$(ENV_SCRIPT) nim c $(NIM_PARAMS) -d:chronicles_log_level=TRACE -o:build/nimbus_execution_client "execution_chain/nimbus_execution_client.nim"
216215

217-
nimbus: nimbus_execution_client
218-
echo "The nimbus target is deprecated and will soon change meaning, use 'nimbus_execution_client' instead"
219-
220216
# symlink
221217
nimbus.nims:
222218
ln -s nimbus.nimble $@
@@ -364,23 +360,21 @@ libnimbusevm: | build deps
364360

365361
# usual cleaning
366362
clean: | clean-common
367-
rm -rf build/{nimbus_unified,nimbus,nimbus_execution_client,fluffy,libverifproxy,nimbus_verified_proxy,$(TOOLS_CSV),$(FLUFFY_TOOLS_CSV),all_tests,test_kvstore_rocksdb,test_rpc,all_fluffy_tests,all_history_network_custom_chain_tests,test_portal_testnet,utp_test_app,utp_test,nimbus_unified_test,*.dSYM}
363+
rm -rf build/{nimbus,nimbus_execution_client,fluffy,libverifproxy,nimbus_verified_proxy,$(TOOLS_CSV),$(FLUFFY_TOOLS_CSV),all_tests,test_kvstore_rocksdb,test_rpc,all_fluffy_tests,all_history_network_custom_chain_tests,test_portal_testnet,utp_test_app,utp_test,*.dSYM}
368364
rm -rf tools/t8n/{t8n,t8n_test}
369365
rm -rf tools/evmstate/{evmstate,evmstate_test}
370366
ifneq ($(USE_LIBBACKTRACE), 0)
371367
+ $(MAKE) -C vendor/nim-libbacktrace clean $(HANDLE_OUTPUT)
372368
endif
373369

374-
# Nimbus unified related targets
375-
376-
# builds the unified client
377-
nimbus_unified: | build deps
370+
# Nimbus
371+
nimbus: | build deps rocksdb
378372
echo -e $(BUILD_MSG) "build/$@" && \
379-
$(ENV_SCRIPT) nim c $(NIM_PARAMS) -d:release --parallelBuild:1 -d:libp2p_pki_schemes=secp256k1 -u:metrics -o:build/$@ "nimbus_unified/$@.nim"
373+
$(ENV_SCRIPT) nim c $(NIM_PARAMS) -d:release --parallelBuild:1 -d:libp2p_pki_schemes=secp256k1 -u:metrics -o:build/nimbus "nimbus/nimbus.nim"
380374

381-
all_tests_unified: | build deps
375+
all_tests_nimbus: | build deps
382376
echo -e $(BUILD_MSG) "build/$@" && \
383-
$(ENV_SCRIPT) nim c -r $(NIM_PARAMS) --threads:on -d:chronicles_log_level=ERROR -o:build/$@ "nimbus_unified/tests/$@.nim"
377+
$(ENV_SCRIPT) nim c -r $(NIM_PARAMS) --threads:on -d:chronicles_log_level=ERROR -o:build/$@ "nimbus/tests/$@.nim"
384378

385379
# Note about building Nimbus as a library:
386380
#

nimbus.nimble

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ task nimbus_verified_proxy, "Build Nimbus verified proxy":
130130
task nimbus_verified_proxy_test, "Run Nimbus verified proxy tests":
131131
test "nimbus_verified_proxy/tests", "test_proof_validation", "-d:chronicles_log_level=ERROR -d:nimbus_db_backend=sqlite"
132132

133-
## nimbus unified tasks
133+
## nimbus tasks
134134

135-
task nimbus_unified, "Build Nimbus":
136-
buildBinary "nimbus_unified", "nimbus_unified/", "-d:chronicles_log_level=TRACE"
135+
task nimbus, "Build Nimbus":
136+
buildBinary "nimbus", "nimbus/", "-d:chronicles_log_level=TRACE"
137137

138-
task nimbus_unified_test, "Run Nimbus tests":
139-
test "nimbus_unified/tests/","all_tests_unified", "-d:chronicles_log_level=ERROR"
138+
task nimbus_test, "Run Nimbus tests":
139+
test "nimbus/tests/","all_tests", "-d:chronicles_log_level=ERROR"

nimbus/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Nimbus Unified
1+
# Nimbus
22

33
<!-- [![Github Actions CI](tbd) -->
44
[![License: Apache](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
@@ -26,9 +26,9 @@ tbd
2626
tbd
2727
- mac os, windows, and linux
2828

29-
]$ make nimbus_unified
29+
]$ make nimbus
3030
## colaborate
31-
We welcome contributions to Nimbus Unified! Please adhere to the following guidelines:
31+
We welcome contributions to Nimbus! Please adhere to the following guidelines:
3232

3333
- Use the [Status Nim style guide](https://status-im.github.io/nim-style-guide/) to maintain code consistency.
3434
- Format your code using the [Nim Pretty Printer (nph)](https://github.com/nim-lang/nimpretty) to ensure consistency across the codebase. Run it as part of your pull request process.

nimbus/configs/nimbus_configs.nim renamed to nimbus/conf.nim

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nimbus_unified
1+
# Nimbus
22
# Copyright (c) 2025 Status Research & Development GmbH
33
# Licensed and distributed under either of
44
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
@@ -12,7 +12,7 @@ import
1212
#eth2-configs
1313
beacon_chain/nimbus_binary_common,
1414
#eth1-configs
15-
../../nimbus/nimbus_desc
15+
../../execution_chain/nimbus_desc
1616

1717
export BeaconNodeConf, NimbusConf
1818

@@ -37,22 +37,20 @@ type
3737
LayerConfig* = object
3838
case kind*: ConfigKind
3939
of Consensus:
40-
consensusConfig*: BeaconNodeConf
40+
consensusConfig*: seq[string]
4141
of Execution:
42-
executionConfig*: NimbusConf
43-
44-
ServiceParameters* = object
45-
name*: string
46-
layerConfig*: LayerConfig
42+
executionConfig*: seq[string]
4743

4844
NimbusService* = ref object
4945
name*: string
50-
timeoutMs*: uint32
51-
serviceHandler*: Thread[ServiceParameters]
46+
layerConfig*: LayerConfig
47+
serviceHandler*: Thread[ptr Channel[pointer]]
48+
serviceChannel: ptr Channel[pointer]
5249

5350
Nimbus* = ref object
54-
serviceList*: array[cNimbusMaxServices, Option[NimbusService]]
51+
serviceList*: seq[NimbusService]
5552

53+
#replace with cond var
5654
## Service shutdown
5755
var isShutDownRequired*: Atomic[bool]
5856
isShutDownRequired.store(false)
@@ -61,10 +59,10 @@ isShutDownRequired.store(false)
6159
proc defaultDataDir*(): string =
6260
let dataDir =
6361
when defined(windows):
64-
"AppData" / "Roaming" / "Nimbus_unified"
62+
"AppData" / "Roaming" / "Nimbus"
6563
elif defined(macosx):
66-
"Library" / "Application Support" / "Nimbus_unified"
64+
"Library" / "Application Support" / "Nimbus"
6765
else:
68-
".cache" / "nimbus_unified"
66+
".cache" / "Nimbus"
6967

7068
getHomeDir() / dataDir

nimbus/consensus/consensus_layer.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nimbus_unified
1+
# Nimbus
22
# Copyright (c) 2025 Status Research & Development GmbH
33
# Licensed and distributed under either of
44
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).

nimbus/execution/execution_layer.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nimbus_unified
1+
# Nimbus
22
# Copyright (c) 2025 Status Research & Development GmbH
33
# Licensed and distributed under either of
44
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).

nimbus/nimbus.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nimbus_unified
1+
# Nimbus
22
# Copyright (c) 2025 Status Research & Development GmbH
33
# Licensed and distributed under either of
44
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).

nimbus/nimbus.nim

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
1-
# nimbus_unified
1+
# Nimbus
22
# Copyright (c) 2025 Status Research & Development GmbH
33
# Licensed and distributed under either of
44
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
55
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
66
# at your option. This file may not be copied, modified, or distributed except according to those terms.
77

88
import
9-
std/[atomics, os, exitprocs],
9+
std/[atomics, os],
1010
chronicles,
11-
stew/io2,
1211
options,
1312
consensus/consensus_layer,
1413
execution/execution_layer,
1514
configs/nimbus_configs,
1615
#eth2-configs
1716
beacon_chain/nimbus_binary_common,
1817
#eth1-configs
19-
../nimbus/nimbus_desc
18+
../execution_chain/nimbus_desc
2019

2120
# ------------------------------------------------------------------------------
2221
# Private
@@ -65,7 +64,7 @@ proc addService(
6564
# Public
6665
# ------------------------------------------------------------------------------
6766

68-
## Block execution and waits for services to finish
67+
## Gracefully exits all services
6968
proc exitServices*(nimbus: Nimbus) =
7069
for i in 0 .. cNimbusMaxServices - 1:
7170
if nimbus.serviceList[i].isSome:
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nimbus_unified
1+
# Nimbus
22
# Copyright (c) 2025 Status Research & Development GmbH
33
# Licensed and distributed under either of
44
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
@@ -8,6 +8,6 @@
88
{.warning[UnusedImport]: off.}
99

1010
import
11-
./test_nimbus_unified,
11+
./test_nimbus,
1212
./consensus/test_consensus_layer,
1313
./execution/test_execution_layer

nimbus/tests/consensus/test_consensus_layer.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nimbus_unified
1+
# Nimbus
22
# Copyright (c) 2025 Status Research & Development GmbH
33
# Licensed and distributed under either of
44
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).

0 commit comments

Comments
 (0)