Zahary Karadjov
3d9aff5d23
Fix some logical typos introduced in the rebase
2020-06-22 17:30:04 +03:00
Zahary Karadjov
1def383ad1
Reword the Tmux setup to handle all simulation scenarios in more visible way
2020-06-22 17:30:04 +03:00
Zahary Karadjov
e9d68e2f7b
Add simulation mode that bootstraps from an Eth1 ganache instance
2020-06-22 17:30:04 +03:00
Zahary Karadjov
7d3160b0b5
Local sim now includes a prometheus server, a Ganache instance and a simulation dashboard server (in Tmux mode)
2020-06-22 17:30:04 +03:00
Jacek Sieka
a661ecbae1
bump libp2p ( #1209 )
2020-06-21 18:45:28 +02:00
Ștefan Talpalaru
e61776b9ab
Merge pull request #1105 from status-im/Nim-1-2-2
...
Nim-1.2.2
2020-06-17 19:28:11 +02:00
Jacek Sieka
073046f8ab
bump libp2p
2020-06-17 13:21:12 +00:00
Ștefan Talpalaru
e072997e97
Nim-1.2.2
2020-06-17 14:42:22 +02:00
Viktor Kirilov
00537b391c
updated news - includes a fix for the test suite of nim-web3
2020-06-17 11:15:55 +03:00
Ștefan Talpalaru
9335533503
bump submodules
2020-06-16 04:27:20 +00:00
tersec
f3fd7e17a3
Revert "bump libp2p ( #1173 )"
...
This reverts commit 95a8a0e81c
.
2020-06-15 14:31:28 +00:00
Jacek Sieka
95a8a0e81c
bump libp2p ( #1173 )
2020-06-14 13:45:05 +02:00
Ștefan Talpalaru
cd80fab5a9
add link to nimbus-build-system docs
2020-06-13 02:01:19 +02:00
Kim De Mey
68a8b7d969
Filter discovery nodes on forkId ( #1162 )
2020-06-12 16:14:18 +02:00
Jacek Sieka
f9c5769d42
bump libp2p
2020-06-11 10:12:52 +02:00
Jacek Sieka
016cc22173
show peer info on connect ( #1155 )
2020-06-11 07:14:26 +02:00
Ștefan Talpalaru
4517bf5dd4
Merge pull request #1156 from status-im/bump
...
bump submodules
2020-06-09 22:29:16 +02:00
Dustin Brody
8f7541959a
allow compile-time switching between v0.11.3 and v0.12.1
2020-06-09 18:39:05 +00:00
Dustin Brody
cc13153fc6
initial 0.12.1 beacon chain spec
2020-06-09 18:39:05 +00:00
Ștefan Talpalaru
2a70f8c9d1
bump submodules
2020-06-09 20:00:33 +02:00
李婷婷
9c1da836f7
fix all comments
2020-06-10 00:50:10 +08:00
李婷婷
77364548e2
rebase from devel
2020-06-10 00:29:29 +08:00
Viktor Kirilov
b3710bfc0b
updated nim-json-rpc to use instead of in logScope
2020-06-09 17:07:47 +03:00
Ștefan Talpalaru
63d8966316
bump submodules
2020-06-06 17:20:54 +00:00
Dmitriy Ryajov
99b2d6758a
upping libp2p ( #1135 )
2020-06-06 10:35:36 +02:00
Zahary Karadjov
83eeff4da9
Bump chronos
2020-06-05 20:10:43 +03:00
Zahary Karadjov
1e51ee1d01
Bump nim-eth
2020-06-05 19:37:42 +03:00
Zahary Karadjov
0c78fc39e7
Use the latest LibP2P
2020-06-05 19:34:12 +03:00
Zahary Karadjov
32bc4d9096
Use {.push raises.} in spec/datatypes
...
This was an attempt to trigger a previously reported crash, but
everything turned out to be fine.
2020-06-05 19:33:30 +03:00
Eugene Kabanov
b22e5b6d1d
Fix #1108 ( #1119 )
2020-06-04 13:32:50 +02:00
Jacek Sieka
56ffb696be
reorder ssz ( #1099 )
...
* reorder ssz
* split into hash_trees and ssz_serialization, roughly, for hashing and
IO
* move bitseqs into ssz (from stew)
* clean up imports
* docs, imports
2020-06-03 15:52:02 +02:00
Zahary Karadjov
ef90a45509
Bump testutils
2020-06-01 16:58:28 +03:00
Zahary Karadjov
0bcdabfcdf
Detect another invalid SSZ input found through fuzzing
...
The first offset of an SSZ object should always have a fixed constant
value. Otherwise, some unused bytes may appear between the fixed portion
and the dynamic portion.
Please note that this fix shutds down the minimal forward compatibility
currently supported by the SSZ format (and thus, the expected behavior
must be clarified in the SSZ spec).
2020-05-30 14:47:35 +03:00
Zahary Karadjov
8d1fb2f3a6
Bump nim-eth to fix 'make witti'
2020-05-29 21:13:58 +03:00
Kim De Mey
e33c8d9067
Bump nim-eth and accompanying discv5 cleanup ( #1081 )
2020-05-29 12:03:29 +02:00
Ștefan Talpalaru
4b731b266d
bump vendor/nimbus-build-system
2020-05-29 00:18:47 +02:00
Mamy André-Ratsimbazafy
49c33f0890
Use v0.12 ready BLS curve
2020-05-28 15:09:56 +00:00
Dmitriy Ryajov
e238e8186c
bumping libp2p to latest master ( #1075 )
2020-05-28 06:38:07 +02:00
Ștefan Talpalaru
489565b5ab
Makefile: small testnet targets refactoring ( #1078 )
2020-05-28 06:28:10 +02:00
Zahary Karadjov
47864c7c6c
Fix wrong bump
2020-05-27 20:14:31 +03:00
Zahary Karadjov
fe2bcb20d2
Bump modules to fix 'make witti-dev'
2020-05-27 20:13:18 +03:00
Zahary Karadjov
28128f4d2f
Add a handler for the Goodbye message
...
The lack of body of `goodbye` in sync_protocol.nim was preventing
the respective LibP2P protocol to be mounted and advertised on the
network.
Adding a body fixes that, but I've also made some changes in the
P2P protocol codegen that will prevent the issue from happening
again (no body is now considered the equivalent of having an empty
body).
2020-05-26 22:17:26 +03:00
Zahary Karadjov
b6c9de968f
Fix some build problems and warnings
2020-05-25 20:33:03 +03:00
Zahary Karadjov
f41d823d07
Bump modules
2020-05-25 13:41:42 +03:00
Zahary Karadjov
833f19e942
Reform the networking layer in order to handle the new stricter SSZ API
2020-05-24 19:00:34 +03:00
Ștefan Talpalaru
f16fb31060
bump vendor/nimbus-build-system
2020-05-22 13:51:37 +00:00
Ștefan Talpalaru
e4173860f0
bump vendor/nimbus-build-system ( #1050 )
...
* bump vendor/nimbus-build-system
* Jenkins: switch to Bash for the "Build" stage
2020-05-21 00:02:05 +02:00
Ștefan Talpalaru
46a99c35f0
bump vendor/nimbus-build-system
2020-05-20 15:55:31 +02:00
Zahary Karadjov
202bbbab6c
Bump some modules
2020-05-20 15:51:45 +03:00
Zahary Karadjov
52c3ebf631
Fuzzing tests for SSZ
2020-05-20 15:51:45 +03:00
Ștefan Talpalaru
383b22795c
bump submodules ( #1043 )
2020-05-20 06:57:39 +02:00
Dustin Brody
6c941b1ff7
spec v0.11.3 update
2020-05-19 17:16:55 +00:00
Zahary Karadjov
a99977b772
Progress towards #991 ; Enable the distinct ssz.List type
2020-05-19 15:53:03 +03:00
tersec
8432932c11
update to spec v0.11.2 to keep compatible with Schlesi ( #1036 )
...
* update to spec v0.11.2 to keep compatible with Schlesi
* update spec/state_transition_epoch spec references to v0.11.2
* bump other spec refs
2020-05-18 23:05:27 +00:00
Dmitriy Ryajov
398166369b
bump libp2p to latest master
2020-05-18 21:51:03 +00:00
Jacek Sieka
6be7d64e8c
bump libp2p ( #1031 )
2020-05-18 10:11:21 +02:00
Ștefan Talpalaru
c232fd0b3d
bump vendor/nimbus-build-system
2020-05-15 14:27:21 +02:00
Jacek Sieka
6c9e2d98a8
bump libp2p
2020-05-14 16:41:19 +03:00
Jacek Sieka
a605c7244e
simplify libp2p snappy
...
* handle a few more exceptions gracefully (in libp2p also)
* unify libp2p varint parsing
* decompress directly into seq
* avoid seq slice
* stop oversized snappy processing earlier (lowers risk)
2020-05-14 16:41:19 +03:00
Viktor Kirilov
926d1c546e
updated news, also no longer allowing event handlers to raise anything other than a Defect in the Web3 API
2020-05-14 14:10:26 +03:00
Zahary Karadjov
e537ed94d6
Bump some modules
2020-05-13 12:19:58 +03:00
Zahary Karadjov
75c1c6a95c
Enable Snappy by default (using LibP2P steams for now)
...
This refactors the newly added Snappy streaming back-ends trying to
make them more similar and to reduce the code duplication to a minimum.
2020-05-13 12:18:42 +03:00
Zahary Karadjov
f055fad08a
Make the Snappy FastStreams integration optional by duplicating it for LibP2P streams
2020-05-13 12:18:42 +03:00
Zahary Karadjov
7e846a0bce
Implement sszSize
2020-05-13 12:18:42 +03:00
Zahary Karadjov
dbe0010504
Bump nim-snappy
2020-05-13 12:18:42 +03:00
Zahary Karadjov
15f0153441
Cosmetic improvements
2020-05-13 12:18:42 +03:00
Zahary Karadjov
9538b60704
Integrate the async Snappy implementation
2020-05-13 12:18:42 +03:00
Zahary Karadjov
a739d7e8d6
Adapt SSZ to the latest FastStreams API
2020-05-13 12:18:42 +03:00
Jacek Sieka
0d1a602cf5
bump libp2p
2020-05-11 21:06:58 +02:00
Ștefan Talpalaru
2d78523423
fix Grafana dashboards ( #1006 )
...
* fix Grafana dashboards
and refactor a couple of scripts
* start.sh: allow running standalone script
2020-05-11 18:35:53 +00:00
Jacek Sieka
fb2e0ddbec
sync fixes ( #1005 )
...
* sync fixes
* fix Status message finalized info
* work around sync starting before initial status exchange
* don't fail block on deposit signature check failure (fixes #989 )
* print ForkDigest and Version nicely
* dump incoming blocks
* fix crash when libp2p peer connection is closed
* update chunk size to 16 to work around missing blocks when syncing
* bump libp2p
* bump libp2p
* better deposit skip message
2020-05-11 18:08:52 +00:00
Ștefan Talpalaru
a7a50824a1
more metrics ( #1004 )
2020-05-11 06:25:49 +00:00
Jacek Sieka
592d6f65c3
bump ( #1001 )
2020-05-09 16:47:14 +02:00
Ștefan Talpalaru
c572f61129
bump vendor/nim-metrics
2020-05-09 01:13:57 +02:00
Ștefan Talpalaru
fc9d6bc1b3
enable SO_REUSEADDR in libp2p transports
2020-05-08 21:50:20 +02:00
Eugene Kabanov
3ffd0d7216
Fix gossip messages not delivered. ( #983 )
2020-05-06 15:42:59 +00:00
Jacek Sieka
e65f5c86da
vendor: bump ( #954 )
2020-04-30 18:27:04 +02:00
Zahary Karadjov
667bdf066a
Bump Chronicles to fix a minor bug; Add a placeholder for disabled topics
2020-04-28 13:49:30 +03:00
Zahary Karadjov
7237a370ba
Implement https://github.com/status-im/nim-beacon-chain/issues/872
...
Please see the newly added 'schlesi-dev' Makefile target.
It demonstrates how the log level can be specified for individual topics.
Additionally, when connecting to testnets like 'schlesi' there will be
two additional log files produced in the working directory:
* json-log.txt
* text-log.txt (in the textblocks format)
2020-04-28 13:49:30 +03:00
Jacek Sieka
898df9ba45
kvstore: port to nim-eth ( #938 )
2020-04-27 18:36:28 +02:00
Zahary Karadjov
740b76d152
Spec-compliant implementation of Eth1 monitoring; Eth1-enabled local sim
...
BEWARE! This commit will trigger a stack overflow during local sim
2020-04-26 13:04:53 +03:00
Jacek Sieka
fe30b24aba
bump ( #929 )
2020-04-24 11:47:51 +02:00
Viktor Kirilov
0079242457
again exported the right overloads for serializing hashes properly to json (and not as byte arrays) and updating nim-eth
2020-04-23 20:46:13 +03:00
Jacek Sieka
6729d3c032
kvstore: fix raising, be harsher on database errors ( #923 )
...
* kvstore: fix raising, be harsher on database errors
* bump stew/serialization
2020-04-23 08:27:35 +02:00
Zahary Karadjov
ae9ca33aca
Disable the faststreams destructors
2020-04-22 21:33:04 +03:00
Jacek Sieka
ed74770451
spec: regulate exceptions ( #913 )
...
* spec: regulate exceptions
* a few more simple raises
2020-04-22 07:53:02 +02:00
Ștefan Talpalaru
2f74951c04
bump submodules ( #912 )
2020-04-21 16:54:32 +02:00
Giovanni Petrantoni
b441a373db
Bump libp2p submodule
2020-04-21 10:46:21 +09:00
Ștefan Talpalaru
1babc00255
new initial submodule update strategy ( #904 )
...
* new initial submodule update strategy
* Azure: fix command order
2020-04-19 01:25:21 +02:00
Jacek Sieka
8b6c51e78d
secp: convenience api ( #897 )
2020-04-17 15:29:49 +02:00
Ștefan Talpalaru
6975869ad6
bump submodules ( #899 )
2020-04-17 01:04:46 +02:00
Zahary Karadjov
e7259ce7ec
Bump faststreams
2020-04-17 00:23:11 +03:00
Zahary Karadjov
a4830976ab
hotfix: fix the selecting of the syncing protocol handlers
2020-04-16 15:01:19 +03:00
Ștefan Talpalaru
7b8d6ea61c
bump vendor/nimbus-build-system ( #894 )
...
* bump vendor/nimbus-build-system
* change beacon_node banner
* beacon_node: update copyright years
* version.nim is imported in beacon_chain.nimble
2020-04-16 00:20:27 +02:00
Zahary Karadjov
99f9bc4eee
Fix the inspector build
2020-04-16 01:01:18 +03:00
Zahary Karadjov
672f690bf6
Implement most of the v0.11.1 networking changes
2020-04-16 01:01:18 +03:00
Zahary Karadjov
8d639d9bd7
Avoid accidental memory allocations in SSZ
2020-04-16 01:01:18 +03:00
Zahary Karadjov
ca49494356
Fix test_fixture_ssz_generic_types
2020-04-16 01:01:18 +03:00
Zahary Karadjov
f34fd46e3a
Add snappy and protobuf-serialization; Use the latest FastStreams API
2020-04-16 01:01:18 +03:00
Ștefan Talpalaru
7435c2010f
remove last traces of Go support
...
You'll have to run `chmod -R 755 vendor/go && rm -rf vendor/go` locally.
2020-04-15 14:38:42 +02:00
Ștefan Talpalaru
b7a32a17ba
bump submodules
...
and remove failing syncManagerGroupRecoveryTest
2020-04-14 18:21:56 +02:00
Jacek Sieka
bf2355d877
bump modules ( #885 )
2020-04-13 08:57:55 +02:00
Jacek Sieka
afa08c8e3c
crypto: cleanup ( #882 )
...
* crypto: cleanup
* fix several Defect-on-user-input
* make crypto interface more similar to secp
* use `crypto.nim` in all of nbc
* digest: raises
* fix
* vendor
2020-04-11 10:51:07 +02:00
Ștefan Talpalaru
a7fe5e4218
Azure: change NimBinaries cache key
...
- also bump submodules to match "devel"
2020-04-08 17:33:13 +02:00
Ștefan Talpalaru
2308dc9520
bump Nim target commit to latest devel
2020-04-08 14:36:03 +02:00
Zahary Karadjov
779349c11d
Compile NBC with Nim 1.2 RC
2020-04-03 22:04:03 +03:00
Jacek Sieka
d180724d41
Bump eth ( #857 )
...
* vendor: bump stew
* vendor: bump nim-eth
* vendor: bump web3 too
2020-04-03 11:12:38 +02:00
Ștefan Talpalaru
eaf4594f77
bump submodules
2020-04-01 23:05:49 +02:00
Ștefan Talpalaru
3ccb2dcb88
Merge branch 'discv5-ip-checks' into bump
2020-04-01 22:48:17 +02:00
Dmitriy Ryajov
f811ed63be
use pkill in start.sh to fix mac os ( #845 )
2020-04-01 10:53:05 +00:00
Ștefan Talpalaru
3239b62904
move "--import:libbacktrace" to config.nims
...
This simplifies the `./env.sh nim c -r ...` scenario.
2020-03-31 14:53:41 +02:00
kdeme
8b9c8a692e
Discv5: Don't pass ip address when external ip is not known
2020-03-31 12:02:13 +02:00
tersec
f5f939bd31
0.11.1 beacon chain spec update ( #836 )
...
* initial 0.11.1 spec commit; no test regressions and finalizes in eth2_network_simulation
* with BLS 0.10/0.11 available, stop skipping attester slashing, proposer slashing, and voluntary exist operations fixture tests
* switch param orders to group state.{fork, genesis_validators_root}; bump spec/datatypes spec version for network purposes
* mark attestation construction and broadcast and some minimal/mainnet constants as 0.11.1-compatible; remove phase 1 sharding constants from minimal which don't exist in that preset
2020-03-30 11:31:44 +00:00
Dmitriy Ryajov
9b07b87ca5
bump libp2p ( #837 )
...
Both `make eth2_network_simulation` and `./scripts/launch_local_testnet.sh --nodes 4 --disable-htop -- --verify-finalization --stop-at-epoch=7` work locally.
2020-03-28 19:20:52 +00:00
Zahary Karadjov
86a3bea1ec
Use the latest Chronos and Libp2p
2020-03-24 22:14:40 +02:00
kdeme
b80a5b90df
Adjustments to store bootnode enrs in discovery object + bump nim-eth
2020-03-24 22:14:40 +02:00
Ștefan Talpalaru
1752e1c2b6
bump submodules
2020-03-23 14:57:26 +02:00
Zahary Karadjov
5868afe341
Restore compilation with -d:p2pdump
2020-03-22 19:28:11 +02:00
Zahary Karadjov
d589cb7964
Fix the build with Json logging enabled
2020-03-22 19:00:09 +02:00
Zahary Karadjov
7d2381240f
Bump nim-eth and nim-json-rpc
2020-03-22 19:00:09 +02:00
Ștefan Talpalaru
4f0caeceed
Merge branch 'bump' into devel
2020-03-18 20:20:10 +01:00
tersec
2a2d6ea6f7
remove vestiges of rocksdb ( #813 )
2020-03-18 19:43:51 +01:00
Ștefan Talpalaru
b0e7e248d5
bump submodules
2020-03-18 17:20:34 +01:00
Dustin Brody
75003c22e1
drop 0.10.1 EF test vectors
2020-03-17 12:06:56 +02:00
tersec
33687c3e41
remove lmdb ( #809 )
2020-03-14 11:33:37 +01:00
Zed
f7862a4cc2
Update testutils submodule
2020-03-13 14:38:59 +00:00
Mamy André-Ratsimbazafy
04234bf90e
Fix second stack-smashing ( https://github.com/status-im/nim-blscurve/issues/43#issuecomment-598357932 )
2020-03-13 12:20:41 +00:00
Mamy André-Ratsimbazafy
28dc8a6a29
Fix mock signatures/validator keys and stack smashing
2020-03-13 12:20:41 +00:00
Mamy André-Ratsimbazafy
985298be1e
update blscurve with privtopub, serialize and exportRaw primitives
2020-03-13 12:20:41 +00:00
Mamy André-Ratsimbazafy
c418bf2b24
Update vendor/nim-blscurve
2020-03-13 12:20:41 +00:00
Dustin Brody
158f3a5c13
bump EF test vectors to 0.11.0 (keeping 0.10.1) and clean up leftover tests/official/fixtures/ directory
2020-03-13 11:40:05 +00:00
Ștefan Talpalaru
68f166800d
bump vendor/nim-metrics
2020-03-13 08:21:36 +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
Dmitriy Ryajov
8d6bfd7ce7
bumping chronos to latest master
2020-03-11 10:53:36 -06:00
kdeme
2e5899c6d7
Bump nim-eth for discv5 fixes
2020-03-11 16:05:11 +00:00
Dmitriy Ryajov
50df0051a8
bumping libp2p to latest master
2020-03-11 10:02:28 -06:00
Jacek Sieka
cf2dd002f6
bump stew
2020-03-10 12:54:06 +01:00
Jacek Sieka
1f1f06e8d9
Revert "bump modules"
...
This reverts commit e93bb880cf
.
2020-03-06 23:46:34 +01:00
Jacek Sieka
e93bb880cf
bump modules
2020-03-06 23:12:25 +01:00
Jacek Sieka
435ce15b04
bump modules
2020-03-05 17:52:26 +01:00
kdeme
02717a6354
Use randomNodes from discv5 instead of lookup
2020-03-05 13:17:34 +02: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
Ștefan Talpalaru
c2c570fcb0
bump submodules
...
plus a few small modifications
2020-02-26 01:14:20 +01:00
Zahary Karadjov
e4ed51a144
Add nim-testutils
2020-02-24 15:39:50 +02:00
Ștefan Talpalaru
8b8a99135f
bump vendor/nim-eth
...
and improve htop processes in launch_local_testnet.sh
2020-02-23 01:56:29 +01:00
Zahary Karadjov
fa0f3b4468
Use the specified extip address in the advertised ENR records
2020-02-22 20:54:15 +02:00
Dmitriy Ryajov
08915ed597
bump libp2p and increase bootstrap timeout
2020-02-21 12:03:19 -06:00
Ștefan Talpalaru
c10d53faaf
bump submodules
2020-02-21 01:35:54 +01:00
Ștefan Talpalaru
fbb16d8aa3
bump vendor/nim-libbacktrace
2020-02-20 22:06:40 +01:00
Jacek Sieka
c25f8d4adf
sqlite kvstore backend ( #749 )
2020-02-20 11:49:34 +01:00