Commit Graph

1478 Commits

Author SHA1 Message Date
Nishant Das
c48f9c96e0
Allow Simulated Backend to Advance Chain (#1445)
* initialize beacon state separately

* extracting out testcase into another func

* creating function for simulated objects

* creating simulated object struct

* final clean up

* documentation

* lint

* adding chain advancer

* review comments

* replacing lib

* adding initialization for chain and new vars in struct

* added func

* fixing tests and all other bugs

* fixing tests

* docs

* adding a new nil block function

* adding test

* remove check for nil blocks

* godoc

* fixing merge conflicts, tests

* fix test
2019-02-06 10:18:55 +08:00
Preston Van Loon
43357293cd
Fix travis (again) (#1503)
* does this fix it?

* does this fix it?
2019-02-05 20:38:29 -05:00
Preston Van Loon
2ae40ba904 Delete binary from #1497 (#1500) 2019-02-05 23:55:44 +01:00
Preston Van Loon
c9c524a607 Delete swap file from #1497 (#1499) 2019-02-05 23:28:01 +01:00
terence tsao
003d686f70
updated proto state fields to unlock alignment (#1497) 2019-02-05 21:14:29 +01:00
terence tsao
506db55be5
Aligning ETH2.0 spec - Make Epoch First Citizen (Shuffling and GetCrosslinkAtSlot) (#1488) 2019-02-05 19:52:14 +01:00
Jerry Fireman
79eb9a5230 Update Get Block Root function (#1339) 2019-02-05 11:55:15 -06:00
Preston Van Loon
58ca71af23 Insert pending deposits (#1495)
* Update config for deposits processing

* Add pending deposits database methods

* oops forgot the files

* move the lock after the nil check

* move the lock after the nil check

* test inclusion behavior

* Insert pending deposits on process deposit log
2019-02-05 11:25:09 -06:00
Preston Van Loon
42a7b859f0 Override reasonable defaults for bazel test timeout (#1496) 2019-02-05 10:49:33 -06:00
Preston Van Loon
2a0eae163e
Handle idx panic (#1492)
* fix panic on empty first committee

* fix issue in validator server too
2019-02-05 11:15:54 -05:00
Preston Van Loon
4b27b8408b
Fix travis (#1493)
* fix travis

* test 2

* goimports

* Remove unused p2p config

* remove unused var
2019-02-05 10:46:32 -05:00
Preston Van Loon
4ccc3b1941
Remove deprecated rules_nodejs call from 509a9def32 (#1490) 2019-02-05 09:14:49 -05:00
Preston Van Loon
4fc8a3881a
Use a better message for notifying of a new deposit (#1491) 2019-02-05 09:07:42 -05:00
Preston Van Loon
4add403335
Validator Proposer Rewrite (#1462)
* WIP - with TODOs

* interface w/ test

* basic test for broadcast

* Add computeStateRoot funciton

* remove custody challenge

* resolve TODO lint issues

* more TODOs

* revert new line in types.proto

* broadcaster comment

* one of several failure condition tests

* Add test cases

* handle compute state error test case

* fix config in validator helpers

* fix tests too

* fix conflict

* partial PR feedback

* remove p2p

* gazelle

* package comment

* Better godoc
2019-02-05 08:47:25 -05:00
renovate[bot]
040405b3d7 Update com_github_aristanetworks_goarista commit hash to 2166578 (#1484) 2019-02-05 12:27:04 +01:00
renovate[bot]
c657f9bcbf Update org_golang_x_sys commit hash to 41f3e65 (#1485) 2019-02-04 22:06:14 -05:00
Preston Van Loon
45a4442f53
fix config in validator helpers (#1483)
* fix config in validator helpers

* fix tests too
2019-02-04 20:56:08 -05:00
Andrei Ivasko
4672859832 Create RPC health check (#1385)
* rpcHealth

* TestBadEndPoint not passed

* Crasher and TestCrasher()

* panic and recover

* assertPanic , TestBadEndPoint failed because of panic in goroutine

* log not found: Starting go routine

* TestLogger implementation

* Testlogger with map  and overriden Fatalf

* rebased

* testLogger - modified the severity of message - added TestStatus - goimports

* fix test issues

* fmt
2019-02-04 15:54:30 -06:00
terence tsao
720c80d8ee Aligning ETH2.0 spec - Make Epoch First Citizen (Package: Committee) (#1477)
* able to bazel build beacon chain.. yay

* fixed package validator tests

* fixed a few more package tests (epoch, blockops, forkchoice)

* fixed all the tests! and lint. Woohoo

* moving committee helpers to own package

* more fixes at epoch processing

* fixed rewards and penalties tests

* fixed rest of the tests. yay
2019-02-04 15:27:28 -06:00
terence tsao
21ac564631
Aligning ETH2.0 spec - Make Epoch First Citizen (Package: Validators) (#1460) 2019-02-04 21:34:33 +01:00
Preston Van Loon
721a3bfb6a Pending deposits db (#1475)
* Update config for deposits processing

* Add pending deposits database methods

* oops forgot the files

* move the lock after the nil check

* test inclusion behavior

* Update db.go

* Add debug logs if processing nil data

* missing return statement

* /before/until/
2019-02-04 21:47:17 +08:00
renovate[bot]
403c25a3f9 Update org_golang_x_sys commit hash to 980327f (#1482) 2019-02-04 12:52:56 +01:00
terence tsao
d1df055ab1
Aligning ETH2.0 spec - Removed Balances from Validator Proto (#1470) 2019-02-04 08:31:43 +01:00
renovate[bot]
6b51dc81b6 Update dependency com_github_mattn_go_colorable to v0.1.0 (#1478) 2019-02-04 08:05:16 +01:00
renovate[bot]
2ffb1cd4fb Update com_github_shyiko_kubesec commit hash to 7718fac (#1476) 2019-02-04 07:48:56 +01:00
renovate[bot]
bf12a14df4 Update com_github_prometheus_procfs commit hash to 488faf7 (#1472) 2019-02-04 06:37:20 +01:00
terence tsao
176aa2688e
Implement Attestation Pool for Fork Choice (#1402) 2019-02-04 00:05:34 +01:00
Raul Jordan
088507af66
Initialize State from ChainStart Deposits in POWChainService (#1474)
* tests passing once again in db package

* fixed all tests

* revert some weird p2p changes made accidentally

* fix repeated code

* build fixed

* fix p2p

* fix all tests
2019-02-03 16:44:48 -06:00
Preston Van Loon
30080656bc Update config for deposits processing (#1473) 2019-02-03 20:21:18 +01:00
Preston Van Loon
62f304e668
Update contract log chain start with timestamp=now (#1471)
* Update contract code to set chainstart to now

* Add note
2019-02-03 12:15:44 -05:00
Preston Van Loon
212e9c5268
Fix missing import in validator image (#1469)
* Fix missing import

* force building of manual targets

* Revert "force building of manual targets"

This reverts commit ada170ffa9c3f3592122e6e48372c330e355ac3a.
2019-02-03 09:07:01 -05:00
Preston Van Loon
0ffa79b2dc
Add configuration for deploying the deposit contract (#1467) 2019-02-03 08:55:02 -05:00
Nishant Das
9a4418c990
Clean Up Simulated Backend (#1433)
* initialize beacon state separately

* extracting out testcase into another func

* creating function for simulated objects

* creating simulated object struct

* final clean up

* documentation

* lint

* review comments
2019-02-03 18:58:36 +08:00
renovate[bot]
a96d4eca61 Update org_golang_x_sys commit hash to 7ae0202 (#1468) 2019-02-03 00:43:59 -05:00
renovate[bot]
5321b0a844 Update com_github_aristanetworks_goarista commit hash to e2363f6 (#1459) 2019-02-03 00:43:45 -05:00
Ed Mazurek
9943e87d76 update-mockgen.sh script (#1451)
* create update-mockgen.sh

* update-mockgen.sh: use for loop

* update-mockgen.sh access array through indices
2019-02-03 00:13:16 -05:00
renovate[bot]
453abae3f0 Update com_github_syndtr_goleveldb commit hash to 2f17a33 (#1466) 2019-02-03 00:12:05 -05:00
Preston Van Loon
5076ee8fd7
linguist-generated=true for mock and pb go files (#1465) 2019-02-02 17:25:28 -05:00
Ivan Martinez
5b209a2b18 Update DepositRoot to Eth1Data (#1403)
* update proto fileds

* Start writing ProcessETH1Data function

* More progress on tests

* Continue more work on tests

* Fix almost all the tests

* Fix all tests

* Fix everything

* Fix after rebase

* Fix for suggestions and fix per-epoch operation

* Remove method usage

* Fix build

* Fix suggestions

* Fix merge issues and suggestions

* Fix rebase issues

* Remove the error from ProcessETH1Data

* WIP write test

* Update test to reach crosslinks

* Revert "Update test to reach crosslinks"

This reverts commit 5ff9177f96c12c98c54eafffcfb385bd966b0888.

* Revert "WIP write test"

This reverts commit f7e7ed715c4af6b7e3c95643f7ebf85830caf638.
2019-02-02 16:24:42 -05:00
renovate[bot]
d06f5ac163 Update org_golang_x_sys commit hash to afcc84f (#1453) 2019-02-02 15:19:06 +01:00
terence tsao
3acffd878c
Aligning ETH2.0 spec - RANDAO helpers (#1454) 2019-02-01 22:22:52 +01:00
renovate[bot]
e8dab78527 Update dependency com_github_whyrusleeping_yamux to v1.1.5 (#1458) 2019-02-01 20:17:22 +01:00
renovate[bot]
f798cd249f Update dependency build_bazel_rules_nodejs to v0.16.7 (#1457) 2019-02-01 18:25:22 +01:00
terence tsao
cdf50e2fa2 Aligning ETH2.0 Spec - Implemented Slot & Epoch Helpers (#1447)
* starting to use SlotToEpoch...

* updated exisiting functions...

* fixed epoch tests

* fixed rest of the tests

* tests for newly added helper functions

* fixed visiblity

* added PrevEpoch and NextEpoch helpers

* lint

* removed file from other commit
2019-02-02 00:52:35 +08:00
terence tsao
72542d5fc7
removed exit count (#1455) 2019-02-01 17:07:11 +01:00
renovate[bot]
b6ea236480 Update dependency com_github_libp2p_go_buffer_pool to v0.1.3 (#1452) 2019-02-01 13:07:26 +08:00
renovate[bot]
50341b986f Update org_golang_x_crypto commit hash to b8fe169 (#1450) 2019-01-31 16:52:07 -05:00
terence tsao
8c355497ee
Beacon Block Operation Pool to store Attestation (#1444) 2019-01-31 19:54:24 +01:00
renovate[bot]
af588ff5ec Update dependency com_github_prometheus_prometheus to v2.7.1 (#1446) 2019-01-31 13:21:44 -05:00
Raul Jordan
67ae7a3a98
Validator Secret Initialization (#1436)
* begin validator initialization

* utilize keystore

* cli create

* add items

* validator accounts package

* completed tests

* linter

* fix broken build
2019-01-31 12:57:57 +01:00