mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-02 09:46:26 +00:00
2d307e2257
* fix initial attestation pool on reordered attestations * simplify db layer api * load head block from database on startup, then load state * significantly changes database format * move subscriptions to separate proc's * implement block replay from historical state * avoid rescheduling epoch actions on block receipt (why?) * make sure genesis block is created and used * relax initial state sim parameters a bit
39 lines
953 B
Nim
39 lines
953 B
Nim
packageName = "beacon_chain"
|
|
version = "0.0.1"
|
|
author = "Status Research & Development GmbH"
|
|
description = "Eth2.0 research implementation of the beacon chain"
|
|
license = "MIT or Apache License 2.0"
|
|
installDirs = @["beacon_chain", "research"]
|
|
bin = @[
|
|
"beacon_chain/beacon_node",
|
|
"beacon_chain/validator_keygen",
|
|
"research/serialized_sizes",
|
|
"research/state_sim",
|
|
]
|
|
|
|
### Dependencies
|
|
requires "nim >= 0.19.0",
|
|
"eth",
|
|
"nimcrypto",
|
|
"blscurve",
|
|
"ranges",
|
|
"chronicles",
|
|
"confutils",
|
|
"serialization",
|
|
"json_serialization",
|
|
"json_rpc",
|
|
"chronos"
|
|
|
|
### Helper functions
|
|
proc test(name: string, defaultLang = "c") =
|
|
# TODO, don't forget to change defaultLang to `cpp` if the project requires C++
|
|
if not dirExists "build":
|
|
mkDir "build"
|
|
--run
|
|
switch("out", ("./build/" & name))
|
|
setCommand defaultLang, "tests/" & name & ".nim"
|
|
|
|
### tasks
|
|
task test, "Run all tests":
|
|
test "all_tests"
|