Commit Graph

6864 Commits

Author SHA1 Message Date
Danny Ryan
d34b79f4de Merge pull request #2630 from ethereum/tests/merge-clean-up
#2598 + cleanups
2021-09-27 11:23:30 -06:00
Danny Ryan
334e3138fa Merge pull request #2628 from ethereum/bump-version
bump VERSION.txt to 1.1.0
2021-09-27 11:14:37 -06:00
Hsiao-Wei Wang
ef51e1cfb9 Change mainnet TERMINAL_TOTAL_DIFFICULTY placeholder to 2**256-2**10 to avoid overflow 2021-09-28 01:02:53 +08:00
Hsiao-Wei Wang
5ab2824427 Clean up, refactor test_transition.py 2021-09-28 00:59:03 +08:00
Diederik Loerakker
2a98d4c517 Merge pull request #2629 from etan-status/build-proof-test
merkle proof test generator
2021-09-27 18:22:04 +02:00
Hsiao-Wei Wang
2fa595f784 Apply the trivial suggestions 2021-09-28 00:17:18 +08:00
protolambda
bd8c978965 move merkle tests, output proof.yaml, update format 2021-09-27 18:07:59 +02:00
Etan Kissling
e7317e2283 merkle proof test generator
Building merkle proofs is required functionality for implementing light
client sync. Although the spec currently only defines a function to
verify merkle proofs (`is_valid_merkle_branch`) there are still a few
PySpec unit tests that produce merkle proofs. This patch adds a new
generator to extract test vectors from those static unit tests, so that
light client implementations can validate their merkle proof logic.
2021-09-27 17:34:51 +02:00
Danny Ryan
c8d05c60ec Apply suggestions from code review 2021-09-27 08:23:02 -06:00
Danny Ryan
42ef3548e1 bump VERSION.txt to 1.1.0 2021-09-27 08:01:27 -06:00
Danny Ryan
adfcb79815 Merge pull request #2625 from ethereum/altair-fork
add ALTAIR_FORK_EPOCH for mainnet configuration
2021-09-27 07:57:09 -06:00
Dmitrii Shmatko
deb4dbd9c8 Make empty pow_block hash generation Python 3.8 compatible 2021-09-25 01:26:01 +03:00
Danny Ryan
30fe7ba110 Merge pull request #2627 from ethDreamer/function_rename
Fixed Validation Conditions (Function Renamed)
2021-09-24 15:19:11 -06:00
Danny Ryan
463c234b8a Merge pull request #2626 from ethereum/bump-version
bump version to v1.1.0-beta.5
2021-09-24 13:16:37 -06:00
Mark Mackey
8a76a4143d Fixed Validation Conditions (Function Renamed) 2021-09-24 14:15:42 -05:00
Danny Ryan
af5eef37b2 fix am/pm issue 2021-09-24 12:29:34 -06:00
Danny Ryan
7b0e7ceafa Update configs/mainnet.yaml
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-09-24 12:28:46 -06:00
Danny Ryan
8d5106808f bump version to v1.1.0-beta.5 2021-09-24 12:26:40 -06:00
Danny Ryan
9f037180ba add ALTAIR_FORK_EPOCH for mainnet configuration 2021-09-24 12:14:39 -06:00
Dmitrii Shmatko
f8b3a67152 Fixed test_on_merge_block tests 2021-09-24 21:06:02 +03:00
Dmitrii Shmatko
457b0396dd update PowBlock generation with random hash 2021-09-24 20:25:18 +03:00
Danny Ryan
995e928f42 Merge pull request #2621 from ethDreamer/fix_gossip_block_validation_conditions
Modify Merge Gossip Block Validation Conditions
2021-09-24 06:33:05 -06:00
Danny Ryan
d7665681a2 simplify merge block gossip conditions 2021-09-24 06:08:01 -06:00
Danny Ryan
940d6b1cc5 Merge pull request #2613 from mkalinin/execution-engine-update
Update execution engine calls
2021-09-24 05:57:27 -06:00
Danny Ryan
3f885c6c0a Merge pull request #2622 from fredriksvantes/patch-2
No longer importing "Paragraph"
2021-09-24 05:45:59 -06:00
Fredrik Svantes
e0eec44e34 No longer importing "Paragraph"
removed Paragraph from being imported from marko.ext.gfm.elements as it is not being used
2021-09-24 12:45:37 +02:00
Mikhail Kalinin
11840ce51f Map EE calls on the PoS events defined in EIP-3675 2021-09-24 16:31:09 +06:00
Danny Ryan
5a4e568d2d Merge pull request #2620 from ethDreamer/altair_p2p_link_fix
Fixed Altair p2p-interface.md Link
2021-09-23 14:50:36 -06:00
Dmitrii Shmatko
f3f1c86a57 Fixed imports in merge tests 2021-09-23 23:13:04 +03:00
Dmitrii Shmatko
1ecfc4016c Polishing merge tests 2021-09-23 23:10:29 +03:00
Dmitrii Shmatko
8ae078a4f5 Merge branch 'dev' into tests/merge 2021-09-23 22:24:33 +03:00
Dmitrii Shmatko
239653ea01 Fixed lint errors for test_on_merge_block.py 2021-09-23 22:24:02 +03:00
Dmitrii Shmatko
b1aa227983 Added on_merge_block client tests 2021-09-23 22:22:34 +03:00
Mark Mackey
d9a183b5cb Modify Merge Gossip Block Validation Conditions 2021-09-23 13:30:43 -05:00
Mark Mackey
08ca12ba97 Fixed Altair p2p-interface.md Link 2021-09-23 13:16:57 -05:00
Hsiao-Wei Wang
d8da784af1 Merge pull request #2619 from etan-status/test-next-sync-tree-fix
fix merkle proof test for mainnet
2021-09-23 22:58:37 +08:00
Etan Kissling
0c65f79d82 fix merkle proof test for mainnet
The `test_next_sync_committee_tree` currently only supports the minimal
preset, as it incorrectly initializes the `next_sync_committee`. On the
mainnet preset, `SYNC_COMMITTEE_SIZE` is 512, but the default states use
only 256 validators, leading to an IndexError during the test execution.
`next_sync_committee` is already initialized correctly prior to the test
run using the spec's `get_next_sync_committee` function, which fills up
extra committee slots with duplicate validators in this scenario. This
makes it unnecessary to manually initialize the `next_sync_committee`.
Removed the incorrect initialization to allow testing on mainnet preset.
2021-09-23 15:20:18 +02:00
Mikhail Kalinin
0e2eb50675 Fix spelling 2021-09-23 15:30:14 +06:00
Mikhail Kalinin
41e06aec1b Introduce PayloadId type 2021-09-23 15:03:43 +06:00
Mikhail Kalinin
7d577ed422 Introduce ExecutionAddress type 2021-09-23 14:35:55 +06:00
Mikhail Kalinin
b7deef1629 Clarity which state should be used in prepare_payload in a better way 2021-09-23 13:50:46 +06:00
Mikhail Kalinin
7ef938da77 Add notify_ prefix to EE functions sending notifications 2021-09-23 13:37:52 +06:00
Mikhail Kalinin
c815f695cd Polish comment in get_payload body
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
2021-09-23 13:17:55 +06:00
Mikhail Kalinin
eada985e9e Better wording for consensus_validated
Co-authored-by: Danny Ryan <dannyjryan@gmail.com>
2021-09-23 13:16:18 +06:00
Mikhail Kalinin
f4bd37a108 Fix spelling 2 2021-09-22 23:58:04 +06:00
Mikhail Kalinin
38a4fd907e Fix spelling
Co-authored-by: Hsiao-Wei Wang <hsiaowei.eth@gmail.com>
2021-09-22 23:56:10 +06:00
Mikhail Kalinin
24bacafeee Update consensus_validated description 2021-09-22 23:52:15 +06:00
Diederik Loerakker
ab99ba47fb Merge pull request #2616 from etan-status/bls-gen-lang
improve grammar in BLS test comments
2021-09-22 18:18:35 +02:00
Diederik Loerakker
de623f0393 Merge pull request #2615 from Nashatyrev/feature/shard-remove-beacon-block-root
Remove beacon_block_root field from ShardBlob
2021-09-22 18:15:18 +02:00
Anton Nashatyrev
df01588464 Return back proposer_index validation for Gossip messages 2021-09-22 18:40:10 +03:00