ericsson
a380f3e1b1
`ceillog2` accepts positive integers now
2020-09-01 11:07:44 +03:00
ericsson
6df35fc3b5
Make `cellog2` return `uint64` so that `CUSTODY_RESPONSE_DEPTH` has `uint64` type
2020-08-31 19:41:57 +03:00
Hsiao-Wei Wang
e3bbf3c702
Merge branch 'dev' into shard-fork-choice-fix
2020-07-29 23:55:30 +08:00
Hsiao-Wei Wang
bd5346b624
Merge pull request #1989 from ethereum/enable-bls-citest
...
Enable Milagro BLS in CI
2020-07-29 23:54:53 +08:00
Hsiao-Wei Wang
f6fd151872
Merge branch 'dev' into shard-fork-choice-fix
2020-07-29 00:15:41 +08:00
protolambda
230e5ce345
remove outdated hash cache, use less memory
2020-07-24 01:19:50 +02:00
Hsiao-Wei Wang
e7f070d525
Use `hash_tree_root` to generate `ShardBlockHeader.body_root`
...
Include the mix-in length to the proof.
2020-07-24 02:09:25 +08:00
Hsiao-Wei Wang
8e82ca5d1a
Merge branch 'dev' into hwwhww/new_int_to_bytes_dev
2020-07-16 01:36:19 +08:00
Hsiao-Wei Wang
6e3a7ad8f2
Merge branch 'dev' into hwwhww/strict-uint64-2
2020-07-15 23:02:51 +08:00
Hsiao-Wei Wang
bb3c360734
Handle the dependencies order of dataclass objects
2020-07-14 17:41:33 +08:00
protolambda
bc35dc410b
fix block data root type, thanks @ericsson49
2020-07-08 15:40:49 +02:00
Hsiao-Wei Wang
2c0595da01
PR feedback from Danny
2020-06-30 00:11:43 +08:00
Hsiao-Wei Wang
d3f2344e45
Add CustodySlashing block test and fix `get_attesting_indices` cache
2020-06-29 20:56:36 +08:00
protolambda
3b7617f51a
make extracted byte uint8 for bitshift, do not use negative slice indexing, avoid negative comparison in test
2020-06-26 16:14:27 +02:00
protolambda
3fb0257cbb
update remerkleable for uint and mypy improvements
2020-06-26 15:57:53 +02:00
Hsiao-Wei Wang
94c231cf98
Fix `ShardTransition.shard_data_roots` and add test
...
1. Fix `ShardTransition.shard_data_roots`: use `get_block_data_merkle_root` helper to calculate it.
2. Rework `get_valid_custody_chunk_response` testing helper: accept
`block_length_or_custody_data`
3. Add `test_with_custody_challenge_and_response` test
2020-06-26 01:46:45 +08:00
Hsiao-Wei Wang
a061758a66
Use `encode_bytes` to implement `int_to_bytes`
...
Rename `bytes_to_int` to `bytes_to_uint64`
Use `encode_bytes` to implement `int_to_bytes`
Rename `int_to_bytes` to `uint_to_bytes` and move it to `ssz_impl.py`
2020-06-25 20:20:39 +08:00
Hsiao-Wei Wang
76840c9178
Merge branch 'dev' into hwwhww/strict-uint64
2020-06-19 17:01:04 +08:00
protolambda
41ebd51aff
Merge branch 'dev' into hwwhww/strict-uint64
2020-06-18 02:49:09 +02:00
protolambda
9b60a9b799
Avoid state usage in p2p validation, compute committee count per slot for epoch as a whole
2020-06-17 20:19:32 +02:00
Danny Ryan
759185632f
Merge branch 'dev' into phase1-validator
2020-06-16 16:07:20 -06:00
Danny Ryan
65a739fe41
Merge branch 'dev' into phase1-validator
2020-06-08 15:50:51 -06:00
Hsiao-Wei Wang
41cfa7fdf6
Merge branch 'dev' into dankrad-custody-256bit
2020-06-09 01:39:51 +08:00
Danny Ryan
b1ff00aab0
Merge branch 'dev' into phase1-validator
2020-06-03 12:18:17 -06:00
Hsiao-Wei Wang
58e75c27ed
Merge branch 'dev' into hwwhww/shard_fork_choice
2020-06-04 00:56:25 +08:00
Danny Ryan
d1647c28e0
Merge branch 'dev' into phase1-validator
2020-06-03 10:43:42 -06:00
Danny Ryan
3a4db69a20
Merge branch 'dev' into dankrad-custody-256bit
2020-06-01 18:45:22 -06:00
Hsiao-Wei Wang
63de59d5f6
Merge branch 'dev' into hwwhww/shard_fork_choice_3
2020-05-30 03:57:17 +08:00
Hsiao-Wei Wang
2dc041807a
Implement `get_start_shard`
2020-05-30 01:26:00 +08:00
Danny Ryan
7770accf96
Merge pull request #1803 from ethereum/fast-bls-option
...
BLS options for pyspec
2020-05-20 14:39:49 -06:00
protolambda
87005c6f10
milagro bls 1.3 with improved error handling
2020-05-20 22:32:47 +02:00
Danny Ryan
96f785e84b
ensure only forward progress with eth1data voting
2020-05-20 13:56:43 -06:00
Hsiao-Wei Wang
f72d14a747
Bump `milagro_bls_binding` to 1.2.0
...
Also verify it in BLS test generator
2020-05-21 01:37:12 +08:00
protolambda
796e372c5e
remerkleable 0.1.16
2020-05-20 15:30:44 +02:00
Hsiao-Wei Wang
21a4143d99
Merge branch 'dev' into fast-bls-option
2020-05-20 16:26:43 +08:00
Hsiao-Wei Wang
4c5d2c25b3
Bump remerkleable to 0.1.15
2020-05-20 14:37:15 +08:00
Hsiao-Wei Wang
ed194de26b
Bump py_ecc to v4.0.0 (IETF BLS v2 + H2C v7)
2020-05-13 02:27:51 +08:00
Hsiao-Wei Wang
78d83b6c7d
Bump py_ecc to v3.0.0 (IETF BLS v2 + H2C v6)
2020-05-12 12:21:35 +08:00
protolambda
b1c2c6e3a2
Default BLS to ON, keep CI BLS off for now, add milagro option
2020-05-11 19:18:49 +02:00
Danny Ryan
b2c36112f6
Merge branch 'dev' into v012x
2020-05-05 09:44:27 -06:00
Hsiao-Wei Wang
dab5a936c4
wip shard fork choice rule
2020-05-05 21:41:46 +08:00
Hsiao-Wei Wang
ee4c866575
Merge branch 'dev' into dankrad-custody-256bit-merging
2020-05-05 15:22:36 +08:00
Hsiao-Wei Wang
4558c7db4e
Reorg the file structure
2020-05-02 02:32:37 +08:00
Dankrad Feist
ab2ee0e2c2
Restoring chunk challenges and testing
2020-04-24 17:06:27 +01:00
Hsiao-Wei Wang
6fdee75475
Fix phase0 types
2020-04-17 23:55:25 +08:00
protolambda
13d1303db8
update remerkleable; mul/div bound checks, update config loading
2020-04-06 18:40:09 +02:00
Danny Ryan
d61b2991a0
fix lint
2020-04-02 16:58:39 -06:00
protolambda
93ff016e76
fix base-reward lru size, fix indent, change total-active-balance key
2020-03-23 20:35:50 +01:00
protolambda
33f8f4936d
Fix base-reward memoization bug, improve memoization with LRU, and improve misc rewards test
2020-03-20 21:15:13 +01:00
Danny Ryan
42499a01e7
Merge pull request #1657 from ethereum/fix-ssz-generic-tests
...
Fix generic SSZ tests, update remerkleable with small bugfix
2020-03-11 16:29:28 -06:00