Jacek Sieka
658e92af96
Historical block roots
...
This PR simplifies and replaces `historical_roots` with
`historical_block_roots`.
By keeping an accumulator of historical block roots in the state, it
becomes possible to validate the entire block history that led up to a
particular state without executing the transitions.
This is interesting for archival purposes as well as when implementing
sync protocols that can then proceed to verify chunks of blocks quickly
- it's also useful as it provides a canonical hash by which such chunks
of blocks can be named, with a direct reference in the state.
In order not to grow the state size further, the `historical_roots`
field is removed - the blocks already contain state roots, so the value
of repeating the state root in the historical accumulator is limited to
empty slots, and even then, the historical block root accumulator
differentiates states that differ by empty slots.
This is a sketch of the full PR - there are a few key decisions to make:
* should the historical block roots be backfilled with phase0 data on
the transition? This simplifies future logic but could be omitted for
simplicity. It's easy to precalculate what the values should be, so it's
not a computational issue.
* should historical roots remain?
As far as naming goes, it's convenient to talk about an "era" being 8192
epoch = 256k slots ~= 36.4 days.
2021-05-20 17:09:02 +02:00
Danny Ryan
e384686ec1
Merge pull request #2427 from ralexstokes/fix-altair-fork-unit-tests
...
Add Altair fork tests to test generators
2021-05-19 16:18:24 -06:00
Alex Stokes
a7346ae384
Add Altair fork tests to test generators
2021-05-18 18:05:07 -07:00
Danny Ryan
92a8ca73ab
Merge pull request #2423 from ethereum/alpha.5
...
bump VERSION.txt to alpha.5
2021-05-18 16:07:21 -06:00
Danny Ryan
19a8076b89
bump VERSION.txt to alpha.5
2021-05-18 15:57:44 -06:00
Danny Ryan
ba551b572c
Merge pull request #2422 from terencechain/patch-121
...
Altair fork: add a link
2021-05-18 15:57:00 -06:00
terence tsao
c03c72a543
Altair fork: add a link
2021-05-18 13:50:46 -07:00
Danny Ryan
248363ce21
Merge pull request #2419 from terencechain/patch-120
...
Fix `PARTICIPATION_FLAG_WEIGHTS` to use correct head weight
2021-05-18 11:27:36 -06:00
Diederik Loerakker
943d334173
Merge pull request #2421 from ericsson49/ericsson49/fix_sharding_process_block
...
Fix typing problem in `sharding.process_block`
2021-05-18 16:27:32 +02:00
ericsson
441992c779
Fix typing problem in sharding.process_block
2021-05-18 14:14:43 +03:00
terence tsao
a7344b3ee1
Fix PARTICIPATION_FLAG_WEIGHTS
to use correct head weight
2021-05-17 21:35:43 -07:00
Danny Ryan
f4aa9f8c65
Merge pull request #2418 from ethereum/sharding-conf
...
sharding: minor config fixes
2021-05-17 17:08:29 -06:00
protolambda
fcf37895ba
remove duplicate sharding config var, fix minimal-sharding-config fork epoch name
2021-05-18 00:48:59 +02:00
Danny Ryan
3209967514
Merge pull request #2416 from terencechain/patch-119
...
Sharding: Call `get_committee_count_per_slot` before slot loop
2021-05-17 10:32:17 -06:00
terence tsao
abda2dd5fa
Sharding: move get_committee_count_per_slot
to the outside
2021-05-14 12:02:46 -07:00
Danny Ryan
7e0cc360e9
Merge pull request #2415 from ethereum/dankrad-review
...
minor review from dankrad on release pr
2021-05-14 10:08:06 -06:00
Danny Ryan
c87333face
minor review from dankrad on release pr
2021-05-14 10:05:54 -06:00
Danny Ryan
021e6bb3f7
Merge pull request #2413 from ethereum/remove-error-code
...
remove resourceunavailable for more discussion
2021-05-14 08:36:03 -06:00
Danny Ryan
110e6b38ee
remove resourceunavailable for more discussion
2021-05-14 08:07:08 -06:00
Diederik Loerakker
2bac3d84cd
Merge pull request #2412 from ethereum/bump-version
...
bmp VERSION.txt to 1.1.0-alpha.4
2021-05-14 15:00:34 +02:00
Diederik Loerakker
5984fd74b3
Merge pull request #2393 from Nashatyrev/cosmetics/blob-subnet-name
...
[Sharding] Network: Calculate {subnet_id} for shard_blob_ subnets
2021-05-14 14:49:09 +02:00
Diederik Loerakker
a1e64c1ceb
Merge pull request #2368 from Nashatyrev/fix/root-for-empty-shard-header
...
[Sharding] Calc the right root with respect to (slot, shard) for an empty PendingShardHeader
2021-05-14 14:44:56 +02:00
Danny Ryan
ccacc936de
bmp VERSION.txt to 1.1.0-alpha.4
2021-05-14 06:44:23 -06:00
Danny Ryan
4cd9a6c710
Merge pull request #2385 from ethereum/execution-payload-testing
...
Execution payload tests
2021-05-14 06:40:40 -06:00
Diederik Loerakker
86792b9232
Merge pull request #2411 from ethereum/order-indices
...
ensure indices are ordered [source, target, head] everywhere
2021-05-14 14:38:26 +02:00
Danny Ryan
ba73a68407
Merge pull request #2409 from terencechain/patch-118
...
Return non-duplicated sync committee subnets
2021-05-14 06:25:41 -06:00
Danny Ryan
160b704f4a
ensure indices are ordered source, target, head everywhere
2021-05-14 06:19:29 -06:00
Danny Ryan
5dd29b6659
fix tests and minor copy edit
2021-05-14 06:15:48 -06:00
terence tsao
1310105174
Return non-duplicated sync committee subnets
2021-05-13 16:22:28 -07:00
protolambda
d3160ba23a
update ExecutionEngine protocol arg references
2021-05-14 01:07:22 +02:00
Danny Ryan
ebafc943c6
Merge pull request #2395 from ethereum/vbuterin-patch-11
...
Update inactivity penalty deltas processing
2021-05-13 15:14:00 -06:00
Danny Ryan
049210bd8a
utilize new randomize functions in process_inactivity_updates testing
2021-05-13 13:44:41 -06:00
Danny Ryan
d38af7a158
Merge branch 'dev' into vbuterin-patch-11
2021-05-13 13:39:05 -06:00
Danny Ryan
699a3f837e
pr feedback
2021-05-13 13:38:43 -06:00
Danny Ryan
7faeaba778
Merge pull request #2408 from ethereum/translate-participation-test
...
Altair fork attestation translation tests
2021-05-13 13:36:30 -06:00
Danny Ryan
a52565aa81
add random altair fork tests for better translation coverage + pr review
2021-05-13 13:21:43 -06:00
Danny Ryan
57e13fd5b2
add INACTIVITY_SCORE_RECOVERY_RATE to configs
2021-05-13 10:59:29 -06:00
Danny Ryan
a6d5b2e215
pull state randomization functions out of rewards testing
2021-05-13 08:22:24 -06:00
Danny Ryan
a2c8e0e6c6
Merge branch 'dev' into translate-participation-test
2021-05-13 06:33:06 -06:00
Danny Ryan
4a91c93962
add epoch processing tests for inactivity udpates
2021-05-12 15:06:32 -06:00
Danny Ryan
fa1bdabace
add random inactivity scores tests
2021-05-12 14:23:11 -06:00
Danny Ryan
24f6e1e99f
Merge branch 'dev' into vbuterin-patch-11
2021-05-12 12:42:46 -06:00
Danny Ryan
51a5474e6d
Merge pull request #2399 from ethereum/keep-inactivity-function
...
dankrad altair review -- extended and tested
2021-05-12 12:38:26 -06:00
Danny Ryan
a469b467ff
Merge branch 'dev' into keep-inactivity-function
2021-05-12 12:27:15 -06:00
Danny Ryan
5188671816
Update specs/altair/beacon-chain.md
...
Co-authored-by: dankrad <dankrad@ethereum.org>
2021-05-12 12:18:35 -06:00
Danny Ryan
a0f86d19d3
Merge pull request #2407 from ethereum/ralexstokes-patch-1
...
Update validator guide with restricted sync committee computation
2021-05-12 12:18:06 -06:00
Danny Ryan
9a0be85b1e
Merge pull request #2406 from ethereum/sync-seed
...
remove sync committee seed and restrict period calculation boundaries
2021-05-12 12:17:42 -06:00
Alex Stokes
4286f85a68
Update validator guide with restricted sync committee computation
2021-05-12 11:05:41 -07:00
Diederik Loerakker
ddc471bd7e
Merge pull request #2398 from ethereum/exec-engine
...
Define execution engine protocol
2021-05-12 17:57:55 +02:00
Danny Ryan
133875a6d6
fix sync_committe_update tests
2021-05-12 09:56:13 -06:00