Mamy André-Ratsimbazafy
bfd4df912e
Update to BLS v0.10.1
2020-03-13 12:20:41 +00:00
Ștefan Talpalaru
1caafba79c
Merge pull request #803 from status-im/misc/bump-libp2p
...
bumping libp2p to latest master
2020-03-12 01:57:11 +01:00
cheatfate
399e91fe5b
Fix failing test.
2020-03-12 02:02:33 +02:00
Dustin Brody
0d3de00714
remove unused imports
2020-03-11 10:50:55 +00:00
Ștefan Talpalaru
f29bfef5a7
start.sh: LOG_LEVEL refactoring [skip ci]
2020-03-09 19:05:17 +01:00
Ștefan Talpalaru
929fcf0036
eth2_network_simulation: propagate LOG_LEVEL [skip ci]
...
also add a "--log-level" option to launch_local_testnet.sh
2020-03-09 01:37:57 +01:00
Jacek Sieka
9a3db7a81f
[WIP] Fake bls at runtime ( #735 )
...
* Initial implementation of runtime bls skipping.
Add libnfuzz skipBLSValidation handling, check that it propagates.
* Rename skipBLSValidation -> skipBlsValidation, start skipStateRootValidation
* Replace skipValidation flags with more granular flags.
Also added skipBlockParentRootValidation flag
Mainly replaced with skipBlsValidation but also StateRoot or
BlockParentRootValidation flags where appropriate.
* Adjust interop test to pass when skipping merkle validation.
* Stop skipping validation for mainchain_monitor.
* Remove comment.
* Also skipMerkleValidation for test_beacon_chain_db.
2020-03-05 13:52:10 +01:00
Joao Gabriel Carvalho
91f87b55b4
SignedBeaconBlock in state_transition ( #773 )
...
* using SignedBeaconBlock in state_transition
2020-02-29 16:15:44 +01:00
Zahary Karadjov
2623ac191f
Force the nodes in the local sim to announce 127.0.0.1 in discovery
2020-02-27 20:45:26 +02:00
Dustin Brody
425b0e13da
remove potential error condition in getAttestationTopic; subscribe to all topics in parallel; add test cases for larger-than-ATTESTATION_SUBNET_COUNT committee indexes
2020-02-21 19:44:03 +00:00
Dustin Brody
6c87af9aab
split attestation beacon topic per honest validator spec
2020-02-21 19:44:03 +00:00
Ștefan Talpalaru
571818495f
small modifications
...
- Jenkins: we don't need LOG_LEVEL=TRACE twice for the same binaries
- eth2_network_simulation: allow overriding NETWORK_TYPE and
BOOTSTRAP_NODE_NETWORK_TYPE from the environment
2020-02-20 16:17:55 +01:00
Jacek Sieka
c25f8d4adf
sqlite kvstore backend ( #749 )
2020-02-20 11:49:34 +01:00
Ștefan Talpalaru
48c2c5df38
tests/simulation/start.sh: Windows support
2020-02-18 17:53:05 +01:00
Zahary Karadjov
2a3e40e298
Fix test_discovery_helpers
2020-02-18 12:53:49 +02:00
Zahary Karadjov
94a0efd7f3
Add a test for ENR to ENode conversion
2020-02-18 12:53:49 +02:00
Zahary Karadjov
ee7c2c9dff
Unify the bootstrap nodes handling code
...
We no longer discriminate between ENR, MultiAddress or ENode
bootstrap records (all of them are remapped to ENodes).
The discovery loop will stochastically try to reconnect to
accidentally disconnected nodes.
2020-02-18 12:53:49 +02:00
Dustin Brody
e13846bec6
allow beacon_node to verify finalization when appropriate, and enable by default for make eth2_network_simulation
2020-02-17 22:00:41 +00:00
Mamy André-Ratsimbazafy
37446302b2
Use the new nim-eth2-scenarios path for the test vectors
2020-02-17 15:26:11 +00:00
Mamy André-Ratsimbazafy
59bfc1c7b5
Rebrand "fixtures" -> scenario + move to "vendor"
2020-02-17 15:26:11 +00:00
Ștefan Talpalaru
98160d3227
tests/simulation/start.sh: refactoring [skip ci]
...
to avoid NIMFLAGS duplication
2020-02-14 13:35:23 +01:00
Dustin Brody
04f63da2cc
print messages for skipped tests
2020-02-11 15:38:41 +00:00
Dustin Brody
ebc8630d5a
finish conversion of manual iteration to automatic iteration over EF test vectors per section
2020-02-11 15:38:41 +00:00
tersec
09d735212d
initial refactoring of block sanity test runner, with several new tests ( #736 )
...
* initial refactoring of block sanity test runner, with several new tests enabled
* remove trailing whitespace
2020-02-07 08:11:26 +01:00
tersec
989559cd2d
set block header tests to automatically enumerate all relevant tests ( #717 )
...
* set block header tests to automatically enumerate all relevant tests
* add several attester slashing tests and run all tests by default, rather than only explicitly listed test vectors
* print something relating to skipped tests
* set voluntary exits to automatically enumerate all tests
2020-02-06 12:41:06 +01:00
Jacek Sieka
cd1c8155bf
shorter epochs in sim
2020-02-06 12:11:51 +01:00
Jacek Sieka
fb9c4fabf4
fix state rewind
...
* rewind fast path comparison was not taking skipped slots into account
properly
* less messy blockref creation
2020-02-05 19:24:07 +00:00
Dustin Brody
ba9c90c0a1
switch attestations, proposer slashings, and slots sanity tests to automatically iterate across all available test vectors rather than hard-coding them
2020-02-04 21:54:42 +00:00
Dustin Brody
1ffc2df23d
add a couple new deposit tests; fix the false-positive BLS verifications while keeping all but two tests working, despite mismatched 0.9/0.10 BLS standards; better-factor the skipping of BLS validation and Merkle tree validation
2020-02-04 18:39:38 +00:00
Zahary Karadjov
d634eba3fd
Produce a json log file in the data dir of each node in the local network sim
2020-02-04 16:09:21 +01:00
Zahary Karadjov
0d9503ee49
Allow run-time switching to the TRACE log level
2020-02-03 17:06:35 +01:00
Dustin Brody
2591be8796
re-organize/shuffle proposer_slashing operations test runner for easy consistency-with-alphabetical-GitHub checking
2020-01-30 12:42:21 +00:00
Dustin Brody
9748b2606e
update attestations and voluntary exit operations test to 0.10.1
2020-01-30 11:19:48 +00:00
Dustin Brody
45dd12cf3f
update process_deposit() to actually check is_valid_merkle_branch() unless skipValidation specified
2020-01-30 09:31:08 +00:00
cheatfate
98dc701473
Add PeerPool.addPeer async version and tests.
2020-01-29 15:28:41 +00:00
cheatfate
8b229d68ad
Add testutil and timedTest.
2020-01-29 15:28:41 +00:00
cheatfate
3b809616ec
Add SyncManager tests to test suite.
2020-01-29 15:28:41 +00:00
cheatfate
db20fc1172
Fix SyncQueue push(data) bug.
...
Rename lastSlot to HeadSlot.
Add failure test.
2020-01-29 15:28:41 +00:00
cheatfate
73dc72583f
Initial commit.
2020-01-29 15:28:41 +00:00
Zahary Karadjov
1f1a244f3f
Implement more checks and wire up the invalid SSZ tests
2020-01-29 10:10:28 +02:00
Zahary Karadjov
28de477f9e
Apply review suggestions
2020-01-27 20:02:09 +02:00
Zahary Karadjov
f30604db28
cp -l is not portable enough (not working on macOS)
2020-01-27 20:02:09 +02:00
Zahary Karadjov
81f031ea1b
Allow mixing daemon and native libp2p builds in local sim
2020-01-27 20:02:09 +02:00
Zahary Karadjov
84c238ca8b
Add Tmux support for the local network sim
...
To use tmux, just set the USE_TMUX env variable to 'yes' or '1'
2020-01-27 20:02:09 +02:00
Dustin Brody
dab107fa1e
more 0.10.1 updates
2020-01-27 12:50:54 +00:00
Mamy Ratsimbazafy
1ba2cebd85
v0.10.1 (test vectors + unchanged parts) ( #696 )
...
* update to 0.10.1
* SSZ Generic and nbench uses the v0.10.1 fixtures
* Tests + spec links: v0.10.0 -> v0.10.1
* Add v0.10.1 TODO in get_latest_attesting_balance (forkchoice)
* SSZ Bytes are now ByteList
* Remove nim-result submodules that was leftover/added by mistake in the branch
2020-01-27 10:56:32 +00:00
Jacek Sieka
270c25c8b8
drop rlpx support ( #679 )
2020-01-24 09:32:52 +01:00
Jacek Sieka
d9c98b15c8
fix block pool finalization point init
2020-01-23 14:34:58 +02:00
Jacek Sieka
95437e103a
disable state pruning
...
* fix crash when state root is present but state is missing
* fix state root removal when state is removed
* fix block pool initialization which needs tail state
* remove tail block pruning
* incomplete - fork states are not pruned
* incomplete - fork blocks are not pruned
* incomplete - empty slot states are not pruned
* unknown - tail/finalized block on empty slot might be incorrect
2020-01-22 19:45:38 +02:00
Jacek Sieka
6cfa28e1f5
fix finalization cleanup
...
* add block pool finalization test
2020-01-21 15:53:53 +02:00