Commit Graph

135 Commits

Author SHA1 Message Date
protolambda
a0c2f5c6b5 fix genesis testing code, add missing constant temporarily, fix py Generator/map/list problems 2019-06-27 01:57:30 +02:00
protolambda
aecaed7a66 move genesis tests, structure properly, add yield keys for future test-vec generator 2019-06-27 01:56:52 +02:00
protolambda
a62d0261ca merge with dev, fixed now 2019-06-27 01:31:10 +02:00
Diederik Loerakker
d587c4fe61 Critical fix: introduce back total-value check (#1220)
This was dropped in a376b6607f, as improvement in dust checking.
Now that dust-checking is done, we still need to check if the sender has the minimum value, as decrease balance just clips to 0.
See be86f966f8 for older dust-creation problem work around, which was dropped in the above.

The bug enabled you to transfer your full balance to someone else, and pay the same amount in fee, possibly to a puppet proposer to collect back funds.
Effectively enabling printing of money. Silly bug, good to fix and introduce tests for.
2019-06-26 20:21:17 +01:00
protolambda
82ae180490 clean up list limit constants 2019-06-24 23:38:36 +02:00
protolambda
0249cf651e fix lint, and update encoder to handle the few imported types well 2019-06-22 20:04:17 +02:00
protolambda
47034a6c8c fix imports in helper test file 2019-06-22 19:59:53 +02:00
protolambda
dd5ad2e2c5 remove unnecessary (and now outdated) type hints, update List encoding for generators 2019-06-22 19:48:06 +02:00
protolambda
f95e7315b4 fix get_active_validator_indices typing usage 2019-06-22 18:34:33 +02:00
Hsiao-Wei Wang
6aef6c5634 Clean up 2019-06-21 22:26:15 -06:00
Hsiao-Wei Wang
5f09212777 yield for is_genesis_trigger 2019-06-21 22:09:09 -06:00
Hsiao-Wei Wang
24ad42663f spectest_with_bls_switch decorator 2019-06-21 22:02:03 -06:00
Hsiao-Wei Wang
7468fd034f Add more test 2019-06-21 21:50:36 -06:00
Hsiao-Wei Wang
8828dad786 minor updates 2019-06-21 17:07:44 -06:00
Hsiao-Wei Wang
e7c595d1d6 Fix test_process_deposit.py 2019-06-21 16:33:24 -06:00
Hsiao-Wei Wang
ac34221f55 Fix is_genesis_trigger and add test case 2019-06-21 16:30:31 -06:00
Hsiao-Wei Wang
7a16db144c Add test_genesis 2019-06-21 15:59:18 -06:00
Danny Ryan
8f99741344 remove commented old code 2019-06-21 14:47:18 -06:00
Danny Ryan
c09e45c5fc fix rule_4 underflow and split out genesis finality test 2019-06-21 14:45:15 -06:00
protolambda
80c40f5e09 merge dev, resolve minor merge conflicts 2019-06-21 21:22:23 +02:00
Carl Beekhuizen
0e59c6676a Stop yielding from fork-choie tests 2019-06-21 13:00:42 +02:00
protolambda
6648b3c49e remove old deposits test, there is no deposit index in deposit data anymore 2019-06-21 00:23:28 +02:00
protolambda
c20372409c comment out old deposit test, re-introduced soon maybe, cc Justin 2019-06-20 22:52:16 +02:00
protolambda
f27c44b953 fix deposit negative index fail 2019-06-20 22:49:34 +02:00
protolambda
6338c5b880 fix custody bug, needs review from Carl 2019-06-20 22:49:03 +02:00
protolambda
224c98a094 last() method, no negative index lookups 2019-06-20 20:55:17 +02:00
protolambda
4e747fb887 fixes for class based ssz typing 2019-06-20 20:25:22 +02:00
Carl Beekhuizen
e0d814df32 Merge branch 'dev' into executable_fork_choice
* dev:
  Increase historical length and cleanups (#1196)
2019-06-19 22:43:14 +02:00
Danny Ryan
29dbe1b880 Increase historical length and cleanups (#1196)
* increase historical length and a few cleanups
2019-06-19 20:59:44 +01:00
Carl Beekhuizen
31a4700223 Merge conflicts on dev 2019-06-17 22:09:43 -04:00
Danny Ryan
d7ac601b9e Merge branch 'dev' into v071backport 2019-06-17 13:42:27 -06:00
Carl Beekhuizen
9f2d06b2e7 Somehow I had indented with 5 spaces everywhere. 2019-06-16 16:02:56 -04:00
Carl Beekhuizen
f421850dc9 Fixes tests! Thanks @hwwhww! 2019-06-16 15:53:42 -04:00
Carl Beekhuizen
4deb311b71 Debugging 1st test 2019-06-16 12:17:31 -04:00
Carl Beekhuizen
5d10cd63c7 SSZ (partially) handles Dicts 2019-06-16 09:52:52 -04:00
Carl Beekhuizen
061ecf7d0a Adds fork-choice tests 2019-06-15 19:13:56 -04:00
Justin Drake
ed748a7d76 Address Danny's comments 2019-06-15 15:09:50 +01:00
Danny Ryan
a6230425b8 Merge branch 'dev' into container-cleanup 2019-06-14 10:36:41 -06:00
Danny Ryan
f834f727fa lint 2019-06-13 18:03:20 -06:00
Danny Ryan
c391017a05 address #1146 by inserting state root and re-signing blocks in tests 2019-06-13 17:57:29 -06:00
Diederik Loerakker
e4704e08cc Merge pull request #1175 from ethereum/bytes-type-error
fix #1169 bytes type error
2019-06-13 22:49:19 +02:00
Danny Ryan
4a08abfa1d ensure sanity tests run with bls 2019-06-13 14:47:53 -06:00
Danny Ryan
7c0cc7f801 fix #1169 bytes type error 2019-06-13 14:32:45 -06:00
Danny Ryan
577f76aff5 Merge pull request #1165 from ethereum/phase-generators
phase restricted generators
2019-06-11 16:48:18 -06:00
protolambda
7fafebd6cf missed one case, fix withdrawal byte <> int problem 2019-06-11 17:32:42 +02:00
protolambda
2d636ddf5a BLS withdrawal byte is formatted as int now, but still one byte. Justin changed spec, now fix tests + configs 2019-06-11 17:27:34 +02:00
Danny Ryan
cc625c7d6d lint 2019-06-11 09:26:23 -06:00
Danny Ryan
ef1ef753a3 comment out transfer test from sanity tests 2019-06-11 09:16:37 -06:00
protolambda
e86771250b Fix tests to use new constant name 2019-06-11 17:16:02 +02:00
protolambda
46d8422510 fix ssz container recognition for generators 2019-06-11 16:49:36 +02:00