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
Jacek Sieka
0d54073ec9
properly work around nim type bug in ssz
...
the cast worked around the bug at compile time by means of casting, but
introduced a runtime error, because the pre-cast type was still being
used during deserialization
2020-05-26 14:12:42 +03:00
Dustin Brody
0929d90d93
unexport candidate_chains.init; some spec version bumps
2020-05-26 05:06:37 +00:00
Zahary Karadjov
b6c9de968f
Fix some build problems and warnings
2020-05-25 20:33:03 +03:00
Viktor Kirilov
8760494c72
first batch of work towards the VC/BN split:
...
- we have a new binary which connects via RPC to the respective BN and has an internal clock - waking it up on every slot
- the BN has a new option called --external-validators and currently in order to have the VC binaries to run we need to pass EXTERNAL_VALIDATORS=yes to make
- factored some code out of beacon_node.nim for easier reuse in validator_api.nim and validator_client.nim
- the VC loads its associated private keys from the datadir for its BN
- most of the validator API calls have been implemented as a stub.
- the VC polls its BN at the start of each epoch - getting a list of all active validators for the current epoch - and then continues to request blocks and sign them with its appropriate validators when necessary
2020-05-25 16:23:15 +03:00
Zahary Karadjov
f41d823d07
Bump modules
2020-05-25 13:41:42 +03:00
zah
626e51a91b
[skip ci] Address core review comments
2020-05-24 19:00:34 +03:00
Zahary Karadjov
4a25bec2b5
Quick and dirty fix for the inspector build
2020-05-24 19:00:34 +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
Zahary Karadjov
a8003e7e38
More complete integration of the List type; Detect more invalid inputs; Enable more tests
2020-05-24 19:00:34 +03:00
Zahary Karadjov
accd5fe954
Don't use StackArray in ssz; Drop the support for strings
2020-05-24 19:00:34 +03:00
Dustin Brody
74e35c464f
halt processing if one of the operation functions fails (failed deposits due to BLS signature issues return as not-failed, so it remains consistant with that
2020-05-24 08:20:13 +00:00
Dustin Brody
67ba11cc1a
use template to more cleanly implement for_ops
2020-05-24 08:20:13 +00:00
Dustin Brody
95ee0218db
switch too-strict/against-spec operations processing to use spec-based process_operations
2020-05-24 08:20:13 +00:00
Jacek Sieka
f06df1cea6
remove some copies
...
* in makeBeaconBlock - use rollback instead
* in tests - this helps state_sim give more accurate data and makes it
30% faster
* fix some usages of raw BeaconState
2020-05-22 17:15:35 +00:00
Ștefan Talpalaru
f16fb31060
bump vendor/nimbus-build-system
2020-05-22 13:51:37 +00:00
Jacek Sieka
681b399e2a
avoid memory alloc when padding ( #1058 )
...
also avoid stack state copy in test
2020-05-22 10:31:19 +02:00
tersec
80b8416305
skip skipped constant sanity checks also from markdown reports' perspectives ( #1053 )
...
* update more spec refs in beacon_chain/spec/presets; skip skipped constant sanity checks also from markdown reports' perspectives
* mark skipped as skipped in markdown
2020-05-21 19:56:09 +02:00
Jacek Sieka
7fbb8c0bc2
return block result details ( #1049 )
2020-05-21 19:08:31 +02:00
Ștefan Talpalaru
04045ae943
Dockerfile: cleanup
2020-05-21 18:22:03 +02:00
Ștefan Talpalaru
0f0833a018
Merge pull request #1051 from status-im/shutdown
...
Eth2Node.stop(): 5s timeout
2020-05-21 02:25:34 +02:00
Ștefan Talpalaru
b2193f1b8f
Eth2Node.stop(): 5s timeout
2020-05-21 00:06:01 +02: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
Jacek Sieka
a38eddcaac
remove ssz stint support ( #1046 )
2020-05-20 19:05:22 +02:00
Dustin Brody
b9817867f5
audit & update spec references for some slashing and rewards and penalty functions; check and update all remaining v0.11.0 spec references to v0.11.3 [skip ci]
2020-05-20 14:57:08 +00:00
Ștefan Talpalaru
0df191b559
Docker fix
2020-05-20 16:38:20 +02:00
Ștefan Talpalaru
46a99c35f0
bump vendor/nimbus-build-system
2020-05-20 15:55:31 +02:00
Jacek Sieka
23daa966be
better deserialization log
2020-05-20 15:41:02 +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
Jacek Sieka
30f84224a4
create dumpdir in beaconnode binary
2020-05-20 11:03:24 +00:00
Dustin Brody
3fa2f70853
update all remaining beacon chain spec references from v0.11.1 and v0.11.2 to v0.11.3
2020-05-20 08:48:18 +00:00
Jacek Sieka
418888f1d0
use ethkeys to parse enr key
2020-05-20 07:35:34 +02:00
Ștefan Talpalaru
383b22795c
bump submodules ( #1043 )
2020-05-20 06:57:39 +02:00
Ștefan Talpalaru
c4462af4ab
beacon_node: graceful shutdown ( #1033 )
...
* beacon_node: graceful shutdown
* separate BeaconNodeStatus and BeaconNode instances
2020-05-19 20:57:35 +02:00
Dustin Brody
f4d38611ef
check that process_slots() succeeds
2020-05-19 17:16:55 +00:00
Dustin Brody
6c941b1ff7
spec v0.11.3 update
2020-05-19 17:16:55 +00:00
Mamy Ratsimbazafy
c014f0b301
Split quarantine ( #1038 )
...
* split blockpool into hotDB and Quarantine
* Rename hotdb -> dag/candidate chains
2020-05-19 16:18:07 +02:00
Zahary Karadjov
a99977b772
Progress towards #991 ; Enable the distinct ssz.List type
2020-05-19 15:53:03 +03:00
Eugene Kabanov
ea95021073
Fix sync issues. ( #1035 )
...
* Fix sync issues.
* Add documentation about zero-point.
Add more comments about syncing loops.
Change to 4 blocks per request.
2020-05-19 14:08:50 +02:00
Jacek Sieka
4359147efc
fix snappy debug message
2020-05-19 09:23:17 +02: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
Dmitriy Ryajov
0649d47df0
use proper transport flags
2020-05-18 21:51:03 +00:00
Jacek Sieka
a1689f2aaf
error when snappy frame is short
2020-05-18 21:15:04 +00:00
Jacek Sieka
6be7d64e8c
bump libp2p ( #1031 )
2020-05-18 10:11:21 +02:00
Zahary Karadjov
24a17f5814
Fix an RPC error in Lighthouse triggered by the getMetadata message
2020-05-16 09:56:13 +03:00
Ștefan Talpalaru
2f9dc31b2e
Merge pull request #1029 from status-im/makefiles
...
bump vendor/nimbus-build-system
2020-05-15 17:10:52 +02:00
tersec
74db0f3c8d
fix some XDeclaredButNotUsed hints ( #1027 )
2020-05-15 14:41:00 +02:00
Ștefan Talpalaru
c232fd0b3d
bump vendor/nimbus-build-system
2020-05-15 14:27:21 +02:00