Mamy Ratsimbazafy
b100ceef56
Add detailed finalization and justification debug logs ( #449 )
...
* Add detailed finalization and justification debug logs
* log was wrongfully reporting rule 123 instead of rule 12
2019-09-23 15:48:26 +02:00
Mamy Ratsimbazafy
0b68f3dc63
[Interop branch] Log improvements - part 1 ( #439 )
...
* use service/category/process for blockpool logs
Only track fork choice logs in block pool (vs beacon_node)
Reduce verbosity on usual event in block pool
* rework beacon node logs
* log for attestations in blockpool
* log - att pool improvement
* use logScope and topics cf review and discussion
* use 7 letters for beacon_node
[log] report peers at slot start + fix bracket prefix [Block pool] Attestation sent
2019-09-23 11:35:41 +02:00
Mamy Ratsimbazafy
6be5805462
Enable more tests ( #442 )
...
* enable all sanity slots tests
* enable more tests in sanity blocks
* win64 strikes again #435
* workaround invalid handle in win64 CI
* empty_epoch_transition_not_finalizing only valid in minimal preset
* sanity block ETH1 data votes are also minimal only
2019-09-12 17:28:33 -04:00
Ștefan Talpalaru
1f05e1cdb2
README: minimum Git version [skip ci]
2019-09-12 18:33:23 +02:00
Mamy Ratsimbazafy
aed770d34b
Bump nim-serialization to potentially solve #435 ( #436 )
...
* Bump nim-serialization to include https://github.com/status-im/nim-serialization/pull/10 and maybe solve #435
* bump again - https://github.com/status-im/nim-serialization/pull/12
* fix null pointer dereference if stream is empty: https://github.com/status-im/nim-serialization/pull/13
* pull https://github.com/status-im/nim-serialization/pull/15 , hopefully the last bump
2019-09-12 09:48:03 -04:00
Mamy Ratsimbazafy
88ec9fd4be
"industrialize" skipping win64 CI ( #441 )
...
* "industrialize" skipping win64 CI
- reintroduce actually working tests
- skip BLS priv_to_pub (tested in blscurve + broken by #440 and #435 )
* missing echo
* try/except OSError doesn't seem to work in unittest so plain ignore + move x64 first for fail fast
* ignore transfers completely in WIn64
2019-09-12 11:33:07 +00:00
Jacek Sieka
45f111d8fe
Merge pull request #440 from status-im/interop-safe
...
Interop safe
2019-09-11 20:50:25 -04:00
Jacek Sieka
42a469603d
simplify startup, describe a few startup tricks
2019-09-11 20:29:57 -04:00
Jacek Sieka
65ff8f2886
remove networkId (unused)
2019-09-11 20:29:57 -04:00
Jacek Sieka
124c1526d8
interop -> multinet
2019-09-11 20:29:57 -04:00
Jacek Sieka
ab2cce3951
add quickStart option that avoids network metadata
2019-09-11 20:29:57 -04:00
mratsim
c619b9557a
Validator pool update to use BLS domain
2019-09-11 20:29:57 -04:00
Zahary Karadjov
2aee749ead
Save a genesis SSZ file
2019-09-11 20:29:57 -04:00
Jacek Sieka
ef92ea1321
bump modules
2019-09-11 20:29:51 -04:00
Mamy Ratsimbazafy
988a13b872
Official operations - deposits unit test ( #408 )
...
* [Test] Official operations - deposits unit test
* Allow ignoring deposits with invalid signature
* We need stacktraces to debug windows 64 issue https://github.com/status-im/nim-beacon-chain/pull/408#issuecomment-529236359
* fix naming of unit test proc
* Revert "We need stacktraces to debug windows 64 issue https://github.com/status-im/nim-beacon-chain/pull/408#issuecomment-529236359 "
This reverts commit 04b8b05162
.
* skip windows-64 in CI #435
* proposer slashing started to crash as well on win-64 #435
2019-09-11 21:10:54 +00:00
Mamy Ratsimbazafy
3dc2b87e6a
Transfer - split process_transfer/processTransfers + tests + fixes ( #422 )
...
* Prepare test suite for transfers
* split API process_transfer / processTransfers
* Add range checks on transfer
* Fix invalid transfer conditions
* don't test on windows 64-bit #435
2019-09-11 20:29:00 +00:00
Dustin Brody
1061708ec2
disable proposer slashing tests only on 64-bit windows ( #438 )
...
* disable proposer slashing tests only on 64-bit windows
* add visible skipped-test output
2019-09-11 09:52:38 -04:00
Mamy Ratsimbazafy
8676bbf388
Add proposer slashing tests ( #431 )
...
* Add proposer slashing tests
* typo in import
2019-09-11 07:50:07 +00:00
mratsim
f4a3e47a61
Update interop instructions [skip ci]
2019-09-10 21:05:58 -04:00
Mamy Ratsimbazafy
6be2e24a8f
Attester slashing - split process_attester_slashing/processAttesterSlashings + tests ( #424 )
...
* attester slashing tests - pending #415
* split process_attester_slashing/processAttesterSlashings
* Add logs to attester_slashing
* deactivate bls tests for now (https://github.com/status-im/nim-beacon-chain/issues/429 ) and cherry-pick from 60f2437dd2
2019-09-10 18:03:06 -04:00
Mamy Ratsimbazafy
68354829e3
Add go compiler as prerequisit [skip ci] ( #430 )
2019-09-10 16:41:24 -04:00
Zahary Karadjov
d1b1ecf86b
Add docker build scripts
2019-09-10 12:19:03 -04:00
Dustin Brody
f72de67f63
Proposer slashing is 0.8.3 ( #425 )
...
* minimal refactor of proposer slashings to 0.8.3; no semantic difference
* actually mark spec
2019-09-10 11:29:46 -04:00
Jacek Sieka
42d785816d
ncli - command line tools for working with .ssz files
2019-09-10 10:15:01 -04:00
Zahary Karadjov
f583135a39
The --stateSnapshot option now accepts ssz files as well
2019-09-10 10:13:49 -04:00
Jacek Sieka
e470bbb52e
don't sign libp2p messages
2019-09-10 10:13:02 -04:00
Zahary Karadjov
c3adac44f2
Use Secp256k1 keys in accordance to the interop spec
2019-09-10 10:11:56 -04:00
Zahary Karadjov
cdff79ec6d
More sync fixes
...
* Fix IncompleteData issues brought by the new spec-compliant stream closing
* Fix logic errors in the sync algorithms
2019-09-10 09:49:54 -04:00
Zahary Karadjov
886b92319f
Implement the response size limits
2019-09-10 09:49:54 -04:00
Jacek Sieka
86fc9a1f9e
fix nil access to mainchainMonitor
2019-09-10 09:49:54 -04:00
Zahary Karadjov
a83aa83644
Working BeaconSync
...
Changes:
* Do not send separate network packets for response codes and msg
len prefixes
* Close streams according to the spec
* Implement more timeouts according to the spec
* Make hello requests during syncing to update our knowledge of
the head block of the other peer.
2019-09-10 09:49:54 -04:00
Zahary Karadjov
4a54fb4103
Cleaned up obsolete BeaconSync code; Added some open questions regarding fetchAncestorBlocks
2019-09-10 09:49:54 -04:00
Zahary Karadjov
9dec05f9c9
Sending chunked responses
2019-09-10 09:49:54 -04:00
Zahary Karadjov
b120a60493
Reading chunked responses
2019-09-10 09:49:54 -04:00
Zahary Karadjov
2bbfa8c877
Changes related to the new ETH interop spec
...
* Hello is no longer a handshake message
(all handshakes related code was deleted for clarity)
* Deal with the single-parameter inlining defined in the new spec
2019-09-10 09:49:54 -04:00
Ștefan Talpalaru
f5b0474aa2
Makefile: define SHELL for when submodules haven't been fetched yet [skip ci]
2019-09-10 02:50:09 +02:00
Mamy Ratsimbazafy
81b47f35d1
Voluntary exit - split single + multiple exits proc & tests ( #421 )
...
* add test suite for voluntary exit
* update API to process_voluntary_exit
* Add range check of validator_index for voluntary exits
* Revert to dual single + multiple voluntary exits API + enable in test suite
* no cache or mocking needed
2019-09-10 00:14:03 +00:00
Mamy Ratsimbazafy
061b6e0ddf
Test block headers ( #418 )
...
* Block headers tests
* Skip invalid_parent_root test due to https://github.com/status-im/nim-beacon-chain/issues/407
* Fix bls_verify with invalid sig. Activate block header tests
2019-09-09 14:40:59 -04:00
Yuriy Glukhov
d4c480ff5f
Eth1 validators ( #393 )
2019-09-09 18:59:02 +03:00
Dustin Brody
a4b4c89539
remove incorrect exit condition in get_attestation_details(...) ( #416 )
...
* remove incorrect exit condition in get_attestation_details(...)
* enable historical batch unit test, which now passes
2019-09-09 09:10:03 -04:00
Mamy Ratsimbazafy
3f446e6383
Attestations EF tests + Proper Real/Opaque BlsValue deserialization ( #410 )
...
* Add attestation unit test
* process_attestation doesn't throw exceptions
* Allow SSZ deserialization of both real and invalid signatures
* Add new process_attestation checks - pass all process_attestation tests
* Add sanity check for #361
* Fix SSZ testing after fromBytes/fromSSZBytes changes
2019-09-08 23:33:24 -04:00
Jacek Sieka
5f58af2112
fix ssz list, protocol names ( #405 )
2019-09-08 16:54:31 +02:00
Eugene Kabanov
bb0e9de09d
[WIP] Sync which using latest network specification. ( #390 )
...
* Fixed getBeaconBlocks() and getRecentBeaconBlocks() to use BlockPool, not db.
* Got the sync_protocol to compiling state; Removed all obsolete RPC calls
2019-09-08 15:08:44 +02:00
Mamy Ratsimbazafy
82b9e008d6
Fix genesis blockheader zero signature (supercedes #395 ) ( #400 )
2019-09-07 20:56:24 -04:00
Mamy Ratsimbazafy
1c4d145f26
Update interop scripts (split from e58eb57
/ #399 ) [skip ci] ( #401 )
2019-09-07 20:16:46 -04:00
Ștefan Talpalaru
026d569d8e
bump go-libp2p-daemon to support Go 1.13 ( #397 )
...
* bump go-libp2p-daemon to support Go 1.13
* bump vendor/nimbus-build-system [skip ci]
2019-09-07 16:23:13 -04:00
zah
93cdb43f1e
Integrate nim-metrics and add some metrics from the ETH2 spec ( #394 )
2019-09-07 19:48:05 +02:00
Dustin Brody
0c174036a5
update get_attesting_indices(...) to 0.8.3; mark IndexedAttestation, Attestation, PendingAttestation, and get_randao_mix(...) as 0.8.3; rm duplicate/dead code get_unslashed_attesting_indices(...) ( #391 )
2019-09-06 21:58:38 +02:00
Yuriy Glukhov
e3bd4410d8
Revert "Eth1 validators" ( #392 )
...
This reverts commit bb8955bdbc
.
2019-09-06 13:00:56 +03:00
Yuriy Glukhov
bb8955bdbc
Eth1 validators
2019-09-06 02:38:38 +02:00