Commit Graph

2909 Commits

Author SHA1 Message Date
Mamy André-Ratsimbazafy 798e135328
Stash code, too much time lost with https://github.com/nim-lang/RFCs/issues/44.
Tests that don't involve serialization are passing, tests that involve serialization are broken. Example command:

`nim c -r --hints:off --warnings:off --verbosity:0 --outdir:build tests/official/test_fixture_operations_attester_slashings.nim`
2021-01-08 15:20:06 +01:00
Mamy André-Ratsimbazafy 591ce5f3d2
Support when object with same field name 4e2ffe3f6d 2021-01-06 14:38:47 +01:00
Mamy André-Ratsimbazafy 3366b75236
compile test_fixture_operations_attestations. Generics sandwiches strike again https://github.com/nim-lang/Nim/issues/11225 2021-01-06 10:38:42 +01:00
Mamy André-Ratsimbazafy 644c17fdbc
bump nim-serialization (still wrong offset for when not object not fixed) 2020-12-23 10:44:53 +01:00
Mamy André-Ratsimbazafy bada5f1b69
Add a comment about sha256 from BLST strangely requiring LTO 2020-12-23 10:36:43 +01:00
Mamy André-Ratsimbazafy ce0f7af862
The light at the end of the SSZ typed tunnel 2020-12-23 10:26:25 +01:00
Mamy André-Ratsimbazafy 6df6931ce4
EF tests [skip CI]
PASS
- const_sanity_check
- operations_deposits
- operations_proposer_slashings
- operations_voluntary_exit
- rewards
- sanity_slots
- ssz_generic_types
- state_transition_epoch

FAIL runtime
- operations_attestations

Compiler Crash
- operations_attester_slashings
- operations_block_header
- sanity_blocks
- ssz_consensus_objects
2020-12-22 16:54:49 +01:00
Mamy André-Ratsimbazafy d78b94563c
Don't import beacon_chain_db in consensus tests. [skip CI] Pass:
- test_ssz
- test_process_attestation
-test_process_deposits
2020-12-22 12:13:51 +01:00
Mamy André-Ratsimbazafy 0a0a304e8e
Update spec types, use generics instead of static enums. TODO SSZ [skip CI] 2020-12-22 10:57:33 +01:00
Mamy André-Ratsimbazafy 7fde0a87d4
Outline the block validation flow 2020-12-18 13:03:39 +01:00
Mamy André-Ratsimbazafy 4d7a403981
bump blscurve 2020-12-17 11:14:48 +01:00
Zahary Karadjov 7d95e86c50
Merge branch 'stable' into devel 2020-12-16 22:22:21 +02:00
Zahary Karadjov f06e6d46a2
v1.0.4 2020-12-16 22:20:45 +02:00
Ștefan Talpalaru c7505a50da
bump vendor/nimbus-benchmarking 2020-12-16 21:02:06 +02:00
Jacek Sieka 5d8cdb88c6
update validator metrics on startup 2020-12-16 20:44:48 +02:00
Jacek Sieka 974f0b7d5e
bump secp 2020-12-16 20:44:04 +02:00
Jacek Sieka e946db56ea
disable frame pointer omission optimization (#2189)
* disable frame pointer omission optimization

it breaks the GC

* oops
2020-12-16 20:41:53 +02:00
Jacek Sieka de779c7812 update validator metrics on startup 2020-12-16 19:42:19 +02:00
Jacek Sieka ca2a09d424 bump secp 2020-12-16 19:41:12 +02:00
Jacek Sieka fea2b712f0
cache not needed to validate exits (#2188) 2020-12-16 15:36:02 +01:00
Ștefan Talpalaru ff23ca27c2
bump vendor/nimbus-benchmarking 2020-12-16 14:11:11 +01:00
Jacek Sieka b367db1a2a
disable frame pointer omission optimization (#2189)
* disable frame pointer omission optimization

it breaks the GC

* oops
2020-12-16 14:07:48 +01:00
Jacek Sieka 7d5edb4353
use new stew helpers for assignment (#2172)
* bump libp2p (reduces libp2p gossip memory usage to ~1/3)
* use "generic" assign version
2020-12-16 09:37:22 +01:00
Jacek Sieka b0086c5d99
bump libp2p (#2187)
* bump libp2p

* also stew
2020-12-16 09:36:51 +01:00
Zahary Karadjov c56677867b
Remove some accidentally left debugging changes 2020-12-16 01:09:19 +02:00
Zahary Karadjov 8ebf9c30b0
More complete reset of the web3 provider on each failure; Fix #2184 2020-12-16 00:21:11 +02:00
Jacek Sieka d59fc8ff5b
readd os import, sometimes used 2020-12-15 16:34:56 +01:00
tersec 91786686d5
don't repeat already-included attestations (#2061)
Don't repeat already-included attestations

Also removes the superfluous (and badly scaling) attestation-cache-eviction
2020-12-15 17:16:10 +02:00
Jacek Sieka 4e191a06ac use stew/leb128
* 3 varint parsers -> 1
* 1/3 memory usage / allocations when writing stuff to libp2p
2020-12-15 17:06:15 +02:00
Jacek Sieka 9211b1ca03 import fixes 2020-12-15 16:19:46 +02:00
Sacha Saint-Leger 9df437541d
Book updates (#2183)
* remove eth2stats from systemd guide

* Make clear that eth2stats is not recommended for mainnet

* edits
2020-12-15 12:31:23 +01:00
tersec 8d1443f03c
detect already-aggregate-voted condition before attestation pool; add is_aggregator tests (#2170)
* detect already-aggregate-voted condition before attestation pool; add is_aggregator tests

* replace pair of attestation-per-epoch tracking lists with single list and remove Option use

* fix attestation condition

* use safer type conversions; add more is_aggregator tests
2020-12-14 20:58:32 +00:00
Ștefan Talpalaru e52c88386b
build warnings (#2179) 2020-12-14 16:45:31 +00:00
Ștefan Talpalaru 9daf6be73c
graceful exit on SIGTERM (#2178)
Much easier than convincing all users to change the default signal in
their service definition file to SIGINT.
2020-12-14 16:45:14 +00:00
Sacha Saint-Leger 14c5d6db1e
Update Pi guide: systemd advice (#2181) 2020-12-14 12:51:16 +01:00
Ștefan Talpalaru 07ea1cd177
Revert "disableMarchNative: also disable ADX in BLST (#2175)"
This reverts commit 6cfe7de6b0.

It's useless, since "-madx" will not be enabled without "-march=native".
2020-12-11 16:51:09 +01:00
Kim De Mey f49fcb9df3
Bump nim-eth for discovery v5 ip limits (#2085) 2020-12-11 14:35:08 +01:00
Giovanni Petrantoni c91091197f
Lower gossipFactor since we default to 160 peers (#2169)
And it might potentially send a bit more IHAVE messages then wanted.
2020-12-11 12:15:34 +01:00
Ștefan Talpalaru e59437c5e2
new Make target: "benchmarks" (#2174)
It runs some benchmarks, collects the output and generates HTML charts.
2020-12-11 12:12:43 +01:00
Ștefan Talpalaru 6cfe7de6b0
disableMarchNative: also disable ADX in BLST (#2175) 2020-12-11 08:16:17 +01:00
Jacek Sieka bc977799f6 Log warning when running without metrics support 2020-12-10 17:22:29 +02:00
Ștefan Talpalaru 92750d5313 reduce peak memory usage during build 2020-12-10 17:17:12 +02:00
yslcrypto e361221d72 remove mention of genesis 2020-12-10 13:09:38 +01:00
Mamy Ratsimbazafy 2b3b219c77
Bump blst: perf + 32-bit platforms support + pure C fallback + drop Miracl fallback tests (#2152)
* bump BLST

* Cached subgroup checks

* Bump BLST - BLST now has pure C fallback for all arch (Miracl unneeded)

* Drop testing Miracl fallback in Nimbus

* Charting uncharted waters: 32-bit should imply -mno-adx
2020-12-10 10:18:07 +01:00
Zahary Karadjov 91741326cc
v1.0.3 2020-12-10 02:56:02 +02:00
Zahary Karadjov 57fdd87a24 Log Eth1 request failures more precisely 2020-12-10 02:54:58 +02:00
Zahary Karadjov 7979fb79d3 Add some useful Eth1 monitor metrics 2020-12-10 02:54:58 +02:00
Zahary Karadjov 983b3c9fbf Add a 'we3 test' command for verifying the compatibility of a web3 provider 2020-12-10 02:54:58 +02:00
Mamy Ratsimbazafy bb2ab7330b
Try to resurrect Travis ARM64 and only use Travis for ARM test (#2167) 2020-12-09 22:53:28 +01:00
Jacek Sieka c4d9d5f64e
bump nim-stew (no change) 2020-12-09 17:24:25 +01:00