Commit Graph

14 Commits

Author SHA1 Message Date
MrChico 4d493e70af
Require deposit to be divisible by GWEI (#14) 2020-05-13 16:45:05 +01:00
Alex Beregszaszi c24305d5d2
Clarify/remove some comments (#16)
* Remove assert(deposit_count <= 2**64-1) comment
* Remove the outdated TODO comment
* Rephrase some comments

Co-authored-by: MrChico <martin.lundfall@protonmail.com>
2020-05-13 15:56:36 +01:00
MrChico 9cdf14da99
Remove unused variable (#15) 2020-05-13 14:47:49 +01:00
MrChico b236ce7a9a
Defensive handling of dead path (#13) 2020-05-13 14:46:58 +01:00
Alex Beregszaszi df7c2c538a
Require deposit amount to fit into uint64 (#9)
Ref https://github.com/ethereum/eth2.0-specs/issues/1726
2020-05-13 14:41:37 +01:00
Alex Beregszaszi a8ed83e087
Inline bytesN(0) instead of custom zero_bytesN vars (#8)
Co-authored-by: Martin Lundfall <martin.lundfall@protonmail.com>
2020-05-12 19:04:18 +01:00
chriseth acb658fbda
Make use of constants. (#7) 2020-05-12 19:01:27 +01:00
Alex Beregszaszi cd323c75db
Drop masking because of explicit uint8 conversion (#5) 2020-05-12 18:59:15 +01:00
Alex Beregszaszi 9957540744 Consider get_deposit_count and get_deposit_root part of the external interface 2020-05-12 01:07:22 +01:00
Alex Beregszaszi 3aaf6f06ad Add license header and clarify comment 2020-05-12 01:06:31 +01:00
Alex Beregszaszi 2000988671 Fix a typo in the assertion (within the comments) 2020-04-16 18:12:58 +01:00
Alex Beregszaszi b0c9d8c2fd Implement get_deposit_count() and get_deposit_root() 2020-04-15 02:40:46 +01:00
Alex Beregszaszi 65ce39b500 First implementation of the deposit() function only 2020-04-15 02:40:41 +01:00
Alex Beregszaszi f441301d16 Genesis 2020-04-15 00:32:40 +01:00