145 Commits

Author SHA1 Message Date
protolambda
7a418ed682
test messed up indices in attester slashings 2019-06-26 23:40:56 +02:00
protolambda
24aa0646c0
new process-slashings tests, and epoch processing bugfix with transition-to-excl not working when not yielded from 2019-06-26 22:22:21 +02:00
protolambda
46dc3f39bb
detach crosslink tests from extra block 2019-06-26 22:22:21 +02:00
protolambda
c66031f55c
fix crosslink tests, fix generalization of epoch processing 2019-06-26 22:22:21 +02:00
protolambda
aedd281edb
clean up epoch processing testing 2019-06-26 22:22:21 +02:00
protolambda
c4c9bd32e2
test_eth1_vote_no_reset 2019-06-26 22:22:21 +02:00
protolambda
b2034a54a0
generalize epoch processing testing, add final-processing tests 2019-06-26 22:22:20 +02:00
protolambda
0e3c2cef5c
fix transfer tests, add 2 new tests 2019-06-26 22:22:20 +02:00
protolambda
b4b4e9571d
test activation queue 2019-06-26 22:22:20 +02:00
protolambda
c4b88e68e1
different new-deposit tests 2019-06-26 22:22:20 +02:00
Diederik Loerakker
6266133572
rename test methods based on suggestion
Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
2019-06-26 22:22:20 +02:00
protolambda
e79b47e3c3
non-existent transfer participants tests 2019-06-26 22:22:20 +02:00
protolambda
063d94b9c7
Bugfix transfer tests 2019-06-26 22:22:19 +02:00
protolambda
55d86b4f13
effective balance testing in deposits 2019-06-26 22:22:19 +02:00
protolambda
1d6b1cab13
expected deposit count test 2019-06-26 22:22:01 +02:00
protolambda
64e15c524b
improve intersection test, just 1 index is enough. And add invalid att1/att2 tests 2019-06-26 22:19:34 +02:00
protolambda
f75e3dccb2
test old and future target epoch in attestation 2019-06-26 22:19:34 +02:00
protolambda
327953852d
test invalid shard in attestation 2019-06-26 22:19:34 +02:00
protolambda
13b67b4cde
sign blocks in eth1 vote tests 2019-06-26 22:19:34 +02:00
protolambda
f54d1a56f7
eth1 voting no consensus test 2019-06-26 22:19:27 +02:00
protolambda
b133dedeaf
Eth1 data test 2019-06-26 22:11:40 +02:00
Diederik Loerakker
d587c4fe61 Critical fix: introduce back total-value check (#1220)
This was dropped in a376b6607fe5e6406371f44254960e891ee5ee8d, 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 be86f966f87958856584b3f20c095abf910a3d0c 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
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