Preston Van Loon
5a1cda482b
add error reporting to spans, remove a few unnecessary spans, add some attribute data to spans ( #2056 )
2019-03-23 20:54:02 -05:00
shayzluf
6335833c94
Validator: performing for multiple keys - update rpc proto ( #2040 )
...
* first version - broken
* Scripts to update mockgen
* working proto changes
* resolve review remarks
* fix goimport issues
2019-03-23 19:46:25 -05:00
Preston Van Loon
aa4f95d818
Add IP based LB ( #2055 )
2019-03-23 09:26:57 -05:00
Ivan Martinez
ca90acca77
Create feature config for selective testing ( #1997 )
...
* Create a feature flagging system
* Refactor how featureflags works and improve docs
* Gazelle and final touches
* Refactor, new flags in the package
* Remove old flags since they have been moved
* Fix bazel
* Update to comments
* Full coverage
* Fix formatting
* Align code with numbers
* Run bazel and fix docs
* Fix test for flag
2019-03-20 22:57:25 -04:00
terence tsao
18bdcedd26
Test on Skip Slot for FFG Check Point ( #2049 )
2019-03-20 18:57:34 -07:00
Preston Van Loon
b806cd7cf9
State size metric ( #1780 )
...
* add metric for state-size
* update comment
2019-03-20 21:29:24 -04:00
Preston Van Loon
810930d6a7
Fix sleep logic for attesting ( #2048 )
...
* sleep before attesting
* Test
2019-03-20 19:51:25 -04:00
terence tsao
92640f9182
Refactor State Gen To Take Input Slot ( #2045 )
2019-03-20 15:33:31 -07:00
Preston Van Loon
83b00369b4
add regression test ( #2046 )
2019-03-20 15:19:48 -07:00
terence tsao
0aae75a4e7
Handle skip slots for FFG check points ( #2044 )
...
* if there's a skip slot, slot--
* fixed typo
2019-03-20 11:18:55 -06:00
Preston Van Loon
d7291ed123
fix this to the proper message type ( #2043 )
2019-03-20 11:13:52 -04:00
Preston Van Loon
7f11cbd5ed
print stack trace on panic recovery ( #2042 )
2019-03-20 10:17:44 -04:00
terence tsao
4a2ef17be1
fixed typo ( #2038 )
2019-03-20 01:13:14 -04:00
Preston Van Loon
9b4f984cc6
Remove old flag from k8s config ( #2037 )
...
* Remove old flag
* Update validator.deploy.yaml
2019-03-20 00:14:25 -04:00
Nishant Das
bb20b3eaad
Fix State Pruning ( #2034 )
...
* fix pruning
* Update beacon-chain/db/state.go
Co-Authored-By: nisdas <nish1993@hotmail.com>
* fix tests
* fix config params
2019-03-20 00:03:45 -04:00
Preston Van Loon
03dfafcb43
Broadcast attestations ( #2035 )
...
* broadcast attestations
* register p2p topics
* handle p2p messages for attestation announcements
* p2p -> P2P
* gazelle
* Remove unused var
2019-03-19 23:54:16 -04:00
Raul Jordan
78acb82182
Broadcast Blocks Before Processing ( #2033 )
...
* broadcast before processing
* fix sync
2019-03-19 23:41:38 -04:00
Preston Van Loon
328e197a78
fix WORKSPACE ( #2036 )
2019-03-19 22:15:32 -04:00
Preston Van Loon
58a13a2eb7
Use imported interfaces in sync package ( #2032 )
...
* Fix spans in regular_sync
* more regular sync ctx fixes
* rename
* use more imported interfaces
* add godoc comments
2019-03-19 17:07:49 -06:00
Preston Van Loon
eb080799ec
Fix spans in regular_sync ( #2031 )
...
* Fix spans in regular_sync
* more regular sync ctx fixes
* rename
2019-03-19 17:35:01 -04:00
terence tsao
7f5b6eb3fc
Update FFG Check Points During Block Processing ( #2006 )
2019-03-19 10:16:17 -07:00
terence tsao
fe7be56bec
log db path ( #2029 )
2019-03-19 10:53:17 -06:00
Preston Van Loon
f44c7082d8
Prevent invalid pending attestations ( #1994 )
...
* prevent invalid pending attestations
* no past block
* regress test
* +1
* fix lint
* fix buld
* revert unrelated
* passing tests, still need regression tst
2019-03-19 12:25:34 -04:00
Nishant Das
f801bfedcf
Fix State Generator ( #2010 )
2019-03-18 20:15:50 -06:00
Raul Jordan
7a83acf46d
Improve Validator Logging and Default Flags ( #2013 )
...
* improve validator logging significantly
* warn validator not yet assigned to epoch
* build added
* report validator logs
* validator performance logging
* all logging improvements
* validator attest better logs
* improved attester logging
* average balances
* dont hash useless hashes
* Update validator/client/validator_propose.go
Co-Authored-By: rauljordan <raul@prysmaticlabs.com>
* address some comments
* standardize with block root hash32, renamings
* gazelle
* builds
* improve average eth balance
* eth net gains/losses
* fix tests
* spacing
* goimports
* avg balance
* update pbs
* addressed preston comments
* imports
* gazelle
2019-03-18 09:45:28 -06:00
Preston Van Loon
d1b664852f
Remove debug log ( #2024 )
...
* Remove debug log
* Update external_ip.go
2019-03-18 09:50:29 -04:00
Raul Jordan
a98912ea58
State Transition Configuration Options ( #2023 )
...
* logging config options
* tests pass
* better naming
* log proposer idx instead of sig
* log avg balance
2019-03-18 00:19:44 -06:00
Nishant Das
78ff565429
Update Aggregate Attestation ( #2004 )
...
* add fixes
* Apply suggestions from code review
Co-Authored-By: nisdas <nish1993@hotmail.com>
* review comments
2019-03-18 11:57:12 +08:00
terence tsao
4056b080e6
Mega Renovate Updates ( #2022 )
...
* Update dependency com_github_spf13_cobra to v0.0.3
* Update dependency com_github_allegro_bigcache to v1
* Update dependency com_github_hashicorp_go_multierror to v1
* Update dependency com_github_x_cray_logrus_prefixed_formatter to v0.5.2
* Update dependency com_github_fd_go_nat to v1
* Update dependency com_github_matttproud_golang_protobuf_extensions to v1
* Update dependency com_github_grpc_ecosystem_go_grpc_middleware to v1
* Update io_bazel_rules_k8s commit hash to 54e9742
* Update dependency build_bazel_rules_nodejs to v0.27.5
* Update dependency com_github_mattn_go_isatty to v0.0.7
* Update dependency com_google_cloud_go to v0.37.0
* Update dependency io_bazel_rules_go to v0.18.1
* Update dependency org_golang_google_api to v0.2.0
* Update dependency com_github_spaolacci_murmur3 to v1
* Fix k8s
2019-03-17 23:13:20 -04:00
Raul Jordan
6c580e6bf2
Update All Our Documentation ( #2012 )
...
* full docs update
* update README
* gofmt and goimports
2019-03-17 16:30:46 -06:00
Preston Van Loon
8d52c52ea4
Manually run goimports in update-go-pbs.sh ( #2014 )
...
https://github.com/gogo/protobuf/issues/554
2019-03-17 16:19:38 -04:00
gzuhlwang
bb1389e362
fix typo ( #2005 )
2019-03-17 12:35:58 -04:00
Ivan Martinez
7f3d8a7e7b
Add README to beacon-chain k8s ( #1966 )
2019-03-17 08:49:25 -06:00
Preston Van Loon
612bb38077
Cross p2p spans, more spans, synchronous attestations, minor fixes ( #2009 )
...
* Fix assignments bug where validators don't retry for assignments on failure
* synch only please
* trying to fix state issues
* trying random stuff
* do not explode
* use ctx
* working build, failing tests
* broadcast local addrs as well as relay addrs
* fixed p2p tests, more tests to fix still
* another test fixed, log warning instead of throw error
* Fix last tests
* godoc
* add test for broadcast in apply fork choiec
* remove unneeded code
* remove tracer adapter, not needed
* remove extra stuff
* remove any
* revert addr_factory
* revert addr_factory
* Revert "revert addr_factory"
This reverts commit e93fb706494a1070158b8db31e67146d6b0648ad.
* Revert "revert addr_factory"
This reverts commit dedaa405559cc818698870c4e4570953367f1e3c.
* revert removal of this code
* unused param
2019-03-17 10:56:05 +08:00
Evgeniy Tsvigun
eb5ed89a91
SHARDING.md: typos, minimal wording fixes ( #2007 )
...
* SHARDING.md: typos, minimal wording fixes
* Update docs/SHARDING.md
Co-Authored-By: utgarda <utgarda@gmail.com>
2019-03-16 07:53:25 -06:00
Ivan Martinez
c2d4f5b2b8
Create bash scripts for initializing beacon chain and 8 validators ( #1996 )
...
* Create scripts for k8s and standard runs
* Add comment
* Create scripts to deploy contract, start beacon chain and validators
* Add placeholders
* Add more docs and remove uneeded tag
2019-03-15 10:42:57 -04:00
Nishant Das
04f4a7f156
Add Clear DB Flag ( #2002 )
...
* clearDB
* lint
2019-03-15 11:20:49 +08:00
Preston Van Loon
5ddf367291
Fix assignments bug where validators don't retry for assignments on failure ( #2000 )
2019-03-14 21:39:25 -04:00
Raul Jordan
f1d77a816e
Revert "Update FFG Check Points During Block Processing ( #1991 )" ( #1998 )
...
This reverts commit b1ffc693e0
.
2019-03-14 16:05:31 -07:00
Nishant Das
00ca1d7991
Fix Errors with Attestation to Current Chainhead ( #1990 )
...
* fix errors
* fix bit check to little endian
* fix all tests
2019-03-14 12:29:44 -04:00
Preston Van Loon
2c1f29922e
use floodsub ( #1992 )
2019-03-14 09:05:49 -07:00
terence tsao
b1ffc693e0
Update FFG Check Points During Block Processing ( #1991 )
...
* update FFG check points in service
* where do stategenerators go?
* commented out state_generator_test for now
* moved state generator back to appropiate location
* fixed block processing with state generator
* fmt
* import circle bad commit
* fix
* taking preston's fix
* gaz
* save justified/finalized objs during beacon chain init
2019-03-14 11:22:05 -04:00
Raul Jordan
ef8232ae2e
Do Not Propose if Assigned to Genesis Slot ( #1989 )
...
* do not propose if assigned to genesis
* fix bitset
* revert bitset
* regress test
* rem commented blocks
2019-03-14 10:13:57 -04:00
Nishant Das
d5c05f083b
add to cache ( #1988 )
2019-03-14 14:43:39 +08:00
terence tsao
e5f66d0b21
Revert "Update FFG Check Points During Block Processing ( #1982 )" ( #1987 )
...
This reverts commit 2c805b731d
.
2019-03-13 21:48:54 -07:00
terence tsao
2c805b731d
Update FFG Check Points During Block Processing ( #1982 )
...
* update FFG check points in service
* where do stategenerators go?
* commented out state_generator_test for now
* moved state generator back to appropiate location
* fixed block processing with state generator
* fmt
* import circle bad commit
* fix
* taking preston's fix
* gaz
2019-03-14 00:22:47 -04:00
Nishant Das
a2e3ae95ae
revert change ( #1985 )
2019-03-13 20:31:03 -04:00
Raul Jordan
5371218b9b
Refactor ChainService for Receiving Blocks Synchronously ( #1984 )
...
* refactor chain service
* restructure service and lint
* all calls to receive block in chain service are now blocking
* begin fixing tests
* refactored blockchain tests
* builds correctly
* blockchain tests pass again
* lint
* sync and rpc tests pass again
* done
* add in open tracing
* span in fork choice
* Update beacon-chain/blockchain/block_processing.go
Co-Authored-By: rauljordan <raul@prysmaticlabs.com>
2019-03-13 17:17:32 -04:00
Raul Jordan
544c040fcb
restructure powchain ( #1983 )
2019-03-13 16:47:00 -04:00
terence tsao
b89391fcad
DB wrappers for justified and finalized objects ( #1978 )
2019-03-13 08:12:42 -07:00