mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-11 14:54:12 +00:00
update nim-beacon-chain to nimbus-eth2 in beacon_chain/, ncli/, tests/, and README.md (#1843)
This commit is contained in:
parent
1d5352aa5d
commit
b79e5f8af5
18
README.md
18
README.md
@ -1,8 +1,8 @@
|
||||
# Nimbus Eth2 (Beacon Chain)
|
||||
|
||||
[![Build Status (Travis)](https://img.shields.io/travis/status-im/nim-beacon-chain/master.svg?label=Linux%20/%20macOS "Linux/macOS build status (Travis)")](https://travis-ci.org/status-im/nim-beacon-chain)
|
||||
[![Build Status (Azure)](https://dev.azure.com/nimbus-dev/nim-beacon-chain/_apis/build/status/status-im.nim-beacon-chain?branchName=master)](https://dev.azure.com/nimbus-dev/nim-beacon-chain/_build/latest?definitionId=3&branchName=master)
|
||||
[![Github Actions CI](https://github.com/status-im/nim-beacon-chain/workflows/Nimbus%20nim-beacon-chain%20CI/badge.svg)](https://github.com/status-im/nim-blscurve/actions?query=workflow%3A%22BLSCurve+CI%22)
|
||||
[![Build Status (Travis)](https://img.shields.io/travis/status-im/nimbus-eth2/master.svg?label=Linux%20/%20macOS "Linux/macOS build status (Travis)")](https://travis-ci.org/status-im/nimbus-eth2)
|
||||
[![Build Status (Azure)](https://dev.azure.com/nimbus-dev/nimbus-eth2/_apis/build/status/status-im.nimbus-eth2?branchName=master)](https://dev.azure.com/nimbus-dev/nimbus-eth2/_build/latest?definitionId=3&branchName=master)
|
||||
[![Github Actions CI](https://github.com/status-im/nimbus-eth2/workflows/Nimbus%20nimbus-eth2%20CI/badge.svg)](https://github.com/status-im/nim-blscurve/actions?query=workflow%3A%22BLSCurve+CI%22)
|
||||
[![License: Apache](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
|
||||
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
|
||||
![Stability: experimental](https://img.shields.io/badge/stability-experimental-orange.svg)
|
||||
@ -117,8 +117,8 @@ apt install build-essential git libpcre3-dev
|
||||
Once the [prerequisites](#prerequisites) are installed you can connect to the [Medalla testnet](https://github.com/goerli/medalla) with the following commands:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/status-im/nim-beacon-chain
|
||||
cd nim-beacon-chain
|
||||
git clone https://github.com/status-im/nimbus-eth2
|
||||
cd nimbus-eth2
|
||||
make medalla # This will build Nimbus and all other dependencies
|
||||
# and connect you to Medalla
|
||||
```
|
||||
@ -210,8 +210,8 @@ To run the Nimbus state transition, we provide the `ncli` tool:
|
||||
|
||||
The interop scripts have been moved in a common repo, the interop relied on 0.8.3 specs which had seen significant changes. The interop branch still exist but is unmaintained.
|
||||
|
||||
* [multinet](https://github.com/status-im/nim-beacon-chain/tree/master/multinet) - a set of scripts to build and run several Eth2 clients locally
|
||||
* [interop branch](https://github.com/status-im/nim-beacon-chain/tree/interop) (unmaintained)
|
||||
* [multinet](https://github.com/status-im/nimbus-eth2/tree/master/multinet) - a set of scripts to build and run several Eth2 clients locally
|
||||
* [interop branch](https://github.com/status-im/nimbus-eth2/tree/interop) (unmaintained)
|
||||
|
||||
## For researchers
|
||||
|
||||
@ -334,7 +334,7 @@ installation directory to "C:\mingw-w64" and add it to your system PATH in "My
|
||||
Computer"/"This PC" -> Properties -> Advanced system settings -> Environment
|
||||
Variables -> Path -> Edit -> New -> C:\mingw-w64\mingw64\bin (it's "C:\mingw-w64\mingw32\bin" on 32-bit)
|
||||
|
||||
Install [Git for Windows](https://gitforwindows.org/) and use a "Git Bash" shell to clone and build nim-beacon-chain.
|
||||
Install [Git for Windows](https://gitforwindows.org/) and use a "Git Bash" shell to clone and build nimbus-eth2.
|
||||
|
||||
Install [CMake](https://cmake.org/) to be able to build libunwind (used for [lightweight stack traces](https://github.com/status-im/nim-libbacktrace)).
|
||||
|
||||
@ -459,7 +459,7 @@ make NIMFLAGS="-d:release"
|
||||
make -j$(nproc) NIMFLAGS="-d:release" USE_MULTITAIL=yes eth2_network_simulation
|
||||
```
|
||||
|
||||
- don't use the [lightweight stack tracing implementation from nim-libbacktrace](https://github.com/status-im/nim-beacon-chain/pull/745):
|
||||
- don't use the [lightweight stack tracing implementation from nim-libbacktrace](https://github.com/status-im/nimbus-eth2/pull/745):
|
||||
|
||||
```bash
|
||||
make USE_LIBBACKTRACE=0 # expect the resulting binaries to be 2-3 times slower
|
||||
|
@ -128,7 +128,7 @@ func check_aggregation_count(
|
||||
var onesCount = 0
|
||||
# TODO a cleverer algorithm, along the lines of countOnes() in nim-stew
|
||||
# But that belongs in nim-stew, since it'd break abstraction layers, to
|
||||
# use details of its representation from nim-beacon-chain.
|
||||
# use details of its representation from nimbus-eth2.
|
||||
|
||||
for aggregation_bit in attestation.aggregation_bits:
|
||||
if not aggregation_bit:
|
||||
|
@ -622,7 +622,7 @@ proc handleIncomingStream(network: Eth2Node,
|
||||
|
||||
# TODO peer connection setup is broken, update info in some better place
|
||||
# whenever race is fix:
|
||||
# https://github.com/status-im/nim-beacon-chain/issues/1157
|
||||
# https://github.com/status-im/nimbus-eth2/issues/1157
|
||||
peer.info = conn.peerInfo
|
||||
|
||||
template returnInvalidRequest(msg: ErrorMsg) =
|
||||
|
@ -41,7 +41,7 @@ func compute_deltas(
|
||||
new_balances: openarray[Gwei]
|
||||
): FcResult[void]
|
||||
# TODO: raises [Defect] - once https://github.com/nim-lang/Nim/issues/12862 is fixed
|
||||
# https://github.com/status-im/nim-beacon-chain/pull/865#pullrequestreview-389117232
|
||||
# https://github.com/status-im/nimbus-eth2/pull/865#pullrequestreview-389117232
|
||||
|
||||
# Fork choice routines
|
||||
# ----------------------------------------------------------------------
|
||||
|
@ -368,7 +368,7 @@ proc process_registry_updates*(state: var BeaconState,
|
||||
## Process activation eligibility and ejections
|
||||
|
||||
# Make visible, e.g.,
|
||||
# https://github.com/status-im/nim-beacon-chain/pull/608
|
||||
# https://github.com/status-im/nimbus-eth2/pull/608
|
||||
# https://github.com/sigp/lighthouse/pull/657
|
||||
let epoch {.used.} = get_current_epoch(state)
|
||||
trace "process_registry_updates validator balances",
|
||||
@ -468,8 +468,8 @@ func get_attesting_indices*(bits: CommitteeValidatorsBits,
|
||||
# do anything here since the PendingAttestation wouldn't have made it past
|
||||
# https://github.com/ethereum/eth2.0-specs/blob/v0.12.3/specs/phase0/beacon-chain.md#attestations
|
||||
# which checks len(attestation.aggregation_bits) == len(committee) that in
|
||||
# nim-beacon-chain lives in check_attestation(...).
|
||||
# Addresses https://github.com/status-im/nim-beacon-chain/issues/922
|
||||
# nimbus-eth2 lives in check_attestation(...).
|
||||
# Addresses https://github.com/status-im/nimbus-eth2/issues/922
|
||||
if bits.len != committee.len:
|
||||
trace "get_attesting_indices: inconsistent aggregation and committee length"
|
||||
return
|
||||
|
@ -310,7 +310,7 @@ proc readValue*(reader: var JsonReader, value: var ValidatorPubKey)
|
||||
|
||||
proc writeValue*(writer: var JsonWriter, value: ValidatorSig) {.
|
||||
inline, raises: [IOError, Defect].} =
|
||||
# Workaround: https://github.com/status-im/nim-beacon-chain/issues/374
|
||||
# Workaround: https://github.com/status-im/nimbus-eth2/issues/374
|
||||
writer.writeValue(value.toHex())
|
||||
|
||||
proc readValue*(reader: var JsonReader, value: var ValidatorSig)
|
||||
|
@ -487,7 +487,7 @@ func process_final_updates*(state: var BeaconState) {.nbench.}=
|
||||
# Equivalent to hash_tree_root(foo: HistoricalBatch), but without using
|
||||
# significant additional stack or heap.
|
||||
# https://github.com/ethereum/eth2.0-specs/blob/v0.12.3/specs/phase0/beacon-chain.md#historicalbatch
|
||||
# In response to https://github.com/status-im/nim-beacon-chain/issues/921
|
||||
# In response to https://github.com/status-im/nimbus-eth2/issues/921
|
||||
state.historical_roots.add hash_tree_root(
|
||||
[hash_tree_root(state.block_roots), hash_tree_root(state.state_roots)])
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
# TODO Cannot override push, even though the function is annotated
|
||||
# nim-beacon-chain/beacon_chain/ssz.nim(212, 18) Error: can raise an unlisted exception: IOError
|
||||
# nimbus-eth2/beacon_chain/ssz.nim(212, 18) Error: can raise an unlisted exception: IOError
|
||||
# {.push raises: [Defect].}
|
||||
{.pragma: raisesssz, raises: [Defect, MalformedSszError, SszSizeMismatchError].}
|
||||
|
||||
|
@ -10,11 +10,11 @@
|
||||
|
||||
# Building
|
||||
|
||||
Follow the instructions from [nim-beacon-chain](../README.md)
|
||||
Follow the instructions from [nimbus-eth2](../README.md)
|
||||
|
||||
```bash
|
||||
git clone https://github.com/status-im/nim-beacon-chain.git
|
||||
cd nim-beacon-chain
|
||||
git clone https://github.com/status-im/nimbus-eth2.git
|
||||
cd nimbus-eth2
|
||||
make
|
||||
```
|
||||
|
||||
|
@ -1,17 +1,17 @@
|
||||
# Introduction
|
||||
|
||||
`libnfuzz` is a wrapper library that exports to C, a set of fuzzing test cases
|
||||
written in Nim and making use of nim-beacon-chain.
|
||||
written in Nim and making use of nimbus-eth2.
|
||||
|
||||
|
||||
# Building
|
||||
|
||||
To build the wrapper library (for more details follow first the instructions from
|
||||
[nim-beacon-chain](../README.md)):
|
||||
[nimbus-eth2](../README.md)):
|
||||
|
||||
```bash
|
||||
git clone https://github.com/status-im/nim-beacon-chain.git
|
||||
cd nim-beacon-chain
|
||||
git clone https://github.com/status-im/nimbus-eth2.git
|
||||
cd nimbus-eth2
|
||||
make
|
||||
# static library
|
||||
make libnfuzz.a
|
||||
|
@ -44,7 +44,7 @@ import # Refactor state transition unit tests
|
||||
# TODO: json tests were removed
|
||||
|
||||
# import # Official fixtures that don't require SSZ parsing of invalid BLS signatures
|
||||
# # https://github.com/status-im/nim-beacon-chain/issues/374
|
||||
# # https://github.com/status-im/nimbus-eth2/issues/374
|
||||
# ./official/test_fixture_bls
|
||||
|
||||
summarizeLongTests("AllTests")
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
# All non-pure SSZ tests that require the -d:ssz_testing
|
||||
# to ignore invalid BLS signature in EF test vectors
|
||||
# https://github.com/status-im/nim-beacon-chain/issues/374
|
||||
# https://github.com/status-im/nimbus-eth2/issues/374
|
||||
|
||||
import ../testutil
|
||||
|
||||
|
@ -23,7 +23,7 @@ from ../../beacon_chain/spec/beaconstate import process_registry_updates
|
||||
|
||||
# TODO: parsing SSZ
|
||||
# can overwrite the calling function stack
|
||||
# https://github.com/status-im/nim-beacon-chain/issues/369
|
||||
# https://github.com/status-im/nimbus-eth2/issues/369
|
||||
#
|
||||
# We store the state on the heap to avoid that
|
||||
|
||||
|
@ -13,13 +13,13 @@ import
|
||||
../beacon_chain/ssz
|
||||
|
||||
# Sanity checks to make sure all the workarounds introduced
|
||||
# to deal with https://github.com/status-im/nim-beacon-chain/issues/374
|
||||
# to deal with https://github.com/status-im/nimbus-eth2/issues/374
|
||||
# and https://github.com/ethereum/eth2.0-specs/issues/1396
|
||||
# don't blow up.
|
||||
|
||||
suiteReport "Zero signature sanity checks":
|
||||
# Using signature directly triggers a bug
|
||||
# in object_serialization/stew: https://github.com/status-im/nim-beacon-chain/issues/396
|
||||
# in object_serialization/stew: https://github.com/status-im/nimbus-eth2/issues/396
|
||||
|
||||
# test "SSZ serialization round-trip doesn't un-zero the signature":
|
||||
|
||||
|
@ -4,7 +4,7 @@ Simple runners for in-browser running of WASM versions of applications - based
|
||||
on emscripten-generated code.
|
||||
|
||||
```
|
||||
# Make sure you have built nim-beacon-chain with make first!
|
||||
# Make sure you have built nimbus-eth2 with make first!
|
||||
./build.sh
|
||||
|
||||
# Run a http server here (wasm + file:/// apparently don't mix)
|
||||
|
@ -45,7 +45,7 @@
|
||||
</style>
|
||||
<div class="row-container">
|
||||
<div class="first-row">
|
||||
<p><a href="https://github.com/status-im/nim-beacon-chain#state-transition-simulation">Ethereum Beacon Chain state transition simulation</a> (unoptimized work in progress, you might run out of memory)</p>
|
||||
<p><a href="https://github.com/status-im/nimbus-eth2#state-transition-simulation">Ethereum Beacon Chain state transition simulation</a> (unoptimized work in progress, you might run out of memory)</p>
|
||||
<form action="state_sim/state_sim.html" method="get" target="frame">
|
||||
<table>
|
||||
<tr>
|
||||
|
@ -45,7 +45,7 @@
|
||||
</style>
|
||||
<div class="row-container">
|
||||
<div class="first-row">
|
||||
<p><a href="https://github.com/status-im/nim-beacon-chain#state-transition-simulation">Ethereum Beacon Chain state transition simulation</a> (unoptimized work in progress, you might run out of memory)</p>
|
||||
<p><a href="https://github.com/status-im/nimbus-eth2#state-transition-simulation">Ethereum Beacon Chain state transition simulation</a> (unoptimized work in progress, you might run out of memory)</p>
|
||||
<form action="ncli/ncli.html" method="get" target="frame">
|
||||
<table>
|
||||
<tr>
|
||||
|
@ -45,7 +45,7 @@
|
||||
</style>
|
||||
<div class="row-container">
|
||||
<div class="first-row">
|
||||
<p><a href="https://github.com/status-im/nim-beacon-chain#state-transition-simulation">Ethereum Beacon Chain state transition simulation</a> (unoptimized work in progress, you might run out of memory)</p>
|
||||
<p><a href="https://github.com/status-im/nimbus-eth2#state-transition-simulation">Ethereum Beacon Chain state transition simulation</a> (unoptimized work in progress, you might run out of memory)</p>
|
||||
<form action="state_sim/state_sim.html" method="get" target="frame">
|
||||
<table>
|
||||
<tr>
|
||||
|
Loading…
x
Reference in New Issue
Block a user