Zahary Karadjov
ac5aabd569
Use the latest confutils
2019-11-11 23:29:36 +00:00
Zahary Karadjov
ed9cb274a2
Restore a change mysteriously lost during rebasing
2019-11-11 23:29:36 +00:00
Zahary Karadjov
88010a1cd1
Allow running the reset_testnet script outside of the Nimbus env [skip ci]
2019-11-11 23:29:36 +00:00
Zahary Karadjov
7df6c241a7
Fix a strange build failure in the tests
2019-11-11 23:29:36 +00:00
Zahary Karadjov
f5e9b9a922
Allow running local nodes without attached validators
...
The number of user nodes is now specified with `USER_NODES`.
To make the instructions more stable, the "numeric id" of the user
nodes will be starting from 0 (so you can always use `run_node.sh 0`
to start a user node).
If you specify a node index above the total number of nodes, you'll
launch a node without any validators attached (this is useful for
testing the sync for example).
2019-11-11 23:29:36 +00:00
Zahary Karadjov
22591deced
Safer testnet restarts; Working CLI queries for inspecting the genesis states
...
When the connect_to_testnet script is invoked it will first verify that
the genesis file of the testnet hasn't changed. If it has changed, any
previously created database associated with the testnet will be erased.
To facilitate this, the genesis file of each network is written to the
data folder of the beacon node. The beacon node will refuse to start if
it detects a discrepancy between the data folder and any state snapshot
specified on the command-line.
Since the testnet sharing spec requires us to use SSZ snapshots, the Json
support is now phased out. To help with the transition and to preserve the
functionality of the multinet scripts, the beacon node now supports a CLI
query command that can extract any data from the genesis state. This is
based on new developments in the SSZ navigators.
2019-11-11 23:29:36 +00:00
Zahary Karadjov
a644839b79
Dynamic SSZ navigator
2019-11-11 23:29:36 +00:00
Zahary Karadjov
fb180a1313
A `query` CLI command for inspecting the state of the database (WIP)
2019-11-11 23:29:36 +00:00
Zahary Karadjov
9d858eef90
Switch testnet1 to a preset that is harder to finalize
2019-11-11 23:29:36 +00:00
Zahary Karadjov
627b60dc10
Use 4 validating nodes in testnet0
2019-11-11 23:29:36 +00:00
Zahary Karadjov
13068c6b57
Safer testnet resets
...
* Delete the node database on all containers when resetting a testnet
* Add a simple mechanism for switching the URL of the eth2-testnets repo
* More flexible code for validator assignments
2019-11-11 23:29:36 +00:00
Ștefan Talpalaru
93d501cd43
Jenkinsfile
2019-11-11 22:16:17 +01:00
Dustin Brody
d457dfee81
switch all but 4 remaining callers to get_crosslink_committee(...) to get_beacon_committee(...)
2019-11-11 11:46:03 +00:00
Dustin Brody
568fa1dcb9
mark functions, constants, and data structures unchanged by 0.9.1 as such
2019-11-11 10:25:57 +00:00
Dustin Brody
949d735155
fix remaining test 0.9.0 test fixtures and switch back to non-transitiontest setup; remove get_committee_count(...); keep SHARD_COUNT consistent with MAX_COMMITTEES_PER_SLOT
2019-11-11 10:25:57 +00:00
Ștefan Talpalaru
3192d1fb4d
bump vendor/nim-metrics
2019-11-10 18:57:51 +01:00
Dustin Brody
cb4a86756b
update get_seed(...) and get_beacon_proposer_index(...) to 0.9.0, implement compute_proposer_index(...), and render 3 more test fixtures working ( #532 )
...
* update get_seed(...) and get_beacon_proposer_index(...) to 0.9.0, implement compute_proposer_index(...), and render 3 more test fixtures working
* rm stray Crosslink reference which prevented static SSZ tests from building
* remove references to removed tests in attestations test fixture; add minimal-preset block sanity test, plus all but one of mainnet tests for block sanity to transition fixtures
2019-11-10 01:03:41 +01:00
Dustin Brody
f02aa20873
innocuous phrasing change to trigger CI build
2019-11-09 18:52:48 +01:00
Ștefan Talpalaru
c1a63035b9
beacon_node: "--version" option [skip ci]
...
fixes #466
2019-11-09 17:43:42 +00:00
Mamy André-Ratsimbazafy
d92d90eb0f
add v0.9.1 fixtures
2019-11-09 10:03:11 +00:00
Dustin Brody
7e3fbbebd0
rename working_tests to more descriptive transition_0_9_0 tests
2019-11-08 13:23:08 +00:00
Dustin Brody
e1cdbb5516
fix typo
2019-11-08 13:23:08 +00:00
Dustin Brody
e984b2c932
mark is_valid_merkle_branch(...), process_justification_and_finalization(...), and process_rewards_and_penalties(...) as 0.9.0; update check_attestation(...) to 0.9.0; add 11 working test fixtures, having updated SSZ fixture directory to 0.9.0
2019-11-08 13:23:08 +00:00
Dustin Brody
275fb22c00
flip targeted spec version and ssz test fixtures to 0.9.0; almost completely update BeaconState to 0.9.0; update minimal and mainnet preset constants to 0.9.0; update process_proposer_slashing(...), get_attestation_deltas(...), and get_matching_head_attestations(...) to 0.9.0; mark process_final_updates(...) as 0.9.0
2019-11-08 13:23:08 +00:00
Dustin Brody
6bb63f3563
root out remaining Transfer references in ncli
2019-11-08 13:23:08 +00:00
Dustin Brody
6d860e1829
fix ncli build after removing Transfer
2019-11-08 13:23:08 +00:00
Dustin Brody
3bb95f571f
remove remaining Crosslink and CompactCommittee vestiges
2019-11-08 13:23:08 +00:00
Dustin Brody
61c2cf9415
rm get_compact_committees_root(...), Transfer, and references to 0.9-removed BeaconState.{active_index_roots,compact_committees_roots; temporarily disable genesis interop test pending 0.9 BeaconState
2019-11-08 13:23:08 +00:00
Dustin Brody
68654848cb
update get_attesting_indices(...) to 0.9.0; remove Crosslink from AttestationData to update AttestationData to 0.9.0; rm get_winning_crosslink_and_attesting_indices(...) and get_crosslink_deltas(...)
2019-11-08 13:23:08 +00:00
Dustin Brody
cb5454c4eb
double-check that one can back-infer shard/epoch from slot/committee-index, in preparation for removing crosslink from AttestationData
2019-11-08 13:23:08 +00:00
Dustin Brody
13e662c8dd
remove scaffolding and make get_crosslink_committee(...) a purer wrapper around get_beacon_committee(...)
2019-11-08 13:23:08 +00:00
Dustin Brody
c2ebe482a5
temporarily disable SSZ tests, which fail when trying to read AttestationData or structures which embed it; implemenet get_committee_count_at_slot(...) and get_beacon_committee(...); express get_crosslink_committee(...) in terms of get_beacon_committee(...) and ensure that results are identical
2019-11-08 13:23:08 +00:00
Ștefan Talpalaru
6a1d287652
beacon_node: print name, version and Git revision [skip ci] ( #527 )
2019-11-08 10:33:16 +00:00
cheatfate
97878566b8
Add peers monitoring.
...
Add broadcasters monitoring.
Resolve broadcasters to ids/addresses.
Add ability to switch between FloodSub and GossipSub.
2019-11-08 01:19:35 +02:00
Ștefan Talpalaru
0794337ba6
simplify handling of eth2-clients/eth2-testnets repo [skip ci]
2019-11-07 21:10:59 +01:00
Yuriy Glukhov
568e669b1c
Fixed deposit/contract
2019-11-07 17:23:06 +00:00
Mamy André-Ratsimbazafy
88e6bb04d2
Integrate to the test suite
2019-11-07 17:22:15 +00:00
Mamy André-Ratsimbazafy
4e5137011b
Fix some declared but not used
2019-11-07 17:22:15 +00:00
Mamy André-Ratsimbazafy
05362886a9
SSZ Heterogeneous container: deserialize SingleField/Small/Fixed, Skip Var/Complex/Bits
2019-11-07 17:22:15 +00:00
Mamy André-Ratsimbazafy
d17f15d020
stash support for Bitlist tests - serialization of distinct types not supported https://github.com/status-im/nim-beacon-chain/issues/518
2019-11-07 17:22:15 +00:00
Mamy André-Ratsimbazafy
1caea64ac9
add BitVector [skip ci]
2019-11-07 17:22:15 +00:00
Mamy André-Ratsimbazafy
3b8fc8fab8
Supports for parsing testing dynamically typed vectors [skip ci]
2019-11-07 17:22:15 +00:00
Mamy André-Ratsimbazafy
bfbcf2a34d
Skeleton of SSZ 0.9.0 for generic SSZ type (not consensus related no minimal/mainnet difference) [skip ci]
2019-11-07 17:22:15 +00:00
Mamy André-Ratsimbazafy
5087b5af30
remove unneeded imports in SSZ fixtures
2019-11-07 17:22:15 +00:00
Mamy André-Ratsimbazafy
9be6bfce35
bump nimyaml
2019-11-07 17:22:15 +00:00
Mamy André-Ratsimbazafy
5f6d60abce
remove a lot of XDeclaredButNotUsed spam from SSZ
2019-11-07 15:22:04 +00:00
Ștefan Talpalaru
e8a64e4206
Dockerfile: less verbosity, faster build [skip ci]
2019-11-07 02:32:59 +01:00
Dustin Brody
a1f5f3512b
add sanity check for SIGFPE crashes ( #524 )
2019-11-06 15:50:12 +00:00
Dustin Brody
0073555752
transition deposit operation fixtures to 0.9.0 ( #515 )
...
* transition deposit operations fixture to 0.9.0
* mark slash_validator(...) as 0.9.0
* switch remaining non-ref objects to ref objects to maybe avoid crashes in CI
* remove unused helpers/debug_state imports
2019-11-06 15:02:06 +00:00
Yuriy Glukhov
9b39c792d0
Revert f79f9deeb3
a0fbf5464a
94a9c51d8a
( #523 )
2019-11-06 16:56:54 +02:00