terence tsao
cac1e94f04
Add altair epoch processing functions ( #9404 )
2021-08-20 16:55:42 -07:00
Raul Jordan
bdfdba1e23
Remove Unused Trieutil Helpers ( #9435 )
...
* remove unused trieutil helpers
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-20 23:00:04 +00:00
Raul Jordan
e2a3dc13fb
Less Flakey E2E API Checks ( #9439 )
...
* compare list attestations instead
* add query filter
* fix failing
* fix response
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-20 22:30:56 +00:00
Radosław Kapka
af2801f215
Implement GetEpochSyncCommittees
in the beacon API ( #9434 )
...
* initial implementation
* get committee for epoch
* test
* fix failing test
# Conflicts:
# beacon-chain/rpc/prysm/v1alpha1/validator/assignments_test.go
* combine function arguments
* review feedback
* use sync committee setter
* fix failing test
* fix build
* remove bad test
* refactor for single responsibilities
* radek suggestions
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-08-20 21:32:56 +00:00
Raul Jordan
fa4a4225a7
Improve DB.SaveBlocks Performance ( #9431 )
...
* improve save blocks performance
* comment
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-20 20:01:38 +00:00
terence tsao
005ce7e238
Remove float64 usage for fork choice ( #9438 )
2021-08-20 14:15:18 -05:00
terence tsao
25bc3f2aeb
More altair spec tests ( #9436 )
...
* Add fork and ssz static spec tests
* Fix build
* Remove minimal tags
2021-08-20 16:47:37 +00:00
terence tsao
67c3ae0117
Add signature verification using current fork ( #9405 )
2021-08-20 07:38:35 -07:00
Raul Jordan
6368da2716
Remove Nested BoltDB View Within Update Transaction in SaveHeadBlockRoot ( #9428 )
...
* no nested bolt txs
* remove the nested view in update calls
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-19 21:42:30 +00:00
terence tsao
3764b7dca3
ValidatorIndexByPubkey
length check (#9424 )
...
* `ValidatorIndexByPubkey` length check
* gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-19 19:33:05 +00:00
Raul Jordan
eac542a8ac
Change Eth2 Repository Names ( #9425 )
...
* eth2 repo name changes
* rem sha
* use consensus spec terminology and pin sha
2021-08-19 13:00:57 -05:00
Nishant Das
9f36116c2f
Update Core Helpers ( #9393 )
...
* add helpers
* naming
* remove comments
* Terence's feedback
* Revert `UpdateCommitteeCache` changes
* Update beacon-chain/core/helpers/committee.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-08-19 12:18:27 +00:00
terence tsao
d874b9140f
Optimize process attestations ( #9418 )
2021-08-18 15:41:09 -07:00
Preston Van Loon
dfd740414f
Altair: operations spectests ( #9413 )
...
* Update spectests to v1.1.0-beta.1 from hf1 branch
* fix params loading
* Altair: operations spectests
* gazelle and nosec on trusted variable inputs
* remove legacy statement from spectest/minimal/altair/operations/BUILD.bazel
2021-08-18 22:01:05 +00:00
Raul Jordan
72cfe50eff
Move Validator Accounts Protos Into Proper Place ( #9416 )
...
* move into proper namespace
* package naming
* add strict deps
* regen protos
* add web api
* regen
* builds
* rename
* build
2021-08-18 21:24:01 +00:00
terence tsao
61acf6f1d1
Slash validator with altair config ( #9415 )
2021-08-18 18:44:17 +00:00
Radosław Kapka
0d8ceb18b0
Improve v2
protos ( #9412 )
...
* Generate SSZ code for `BeaconBlockContainerV2`
* new line at end of file
* remove unneeded V2 suffix
* more fun stuff
# Conflicts:
# proto/eth/v1/generated.ssz.go
* rename Altair to V2
2021-08-18 15:50:37 +00:00
Nishant Das
5b7b9f9ac9
Refactor Subnet Methods For Altair ( #9386 )
...
* change subnets
* add in missing one
* add comment
* Update beacon-chain/p2p/subnets.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* terence's review
* terence's review
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-18 04:55:48 +00:00
Nishant Das
8e503d0980
Change Back Read-Only Validator Declaration ( #9410 )
...
* remove indirection
* fix
2021-08-18 11:59:55 +08:00
Preston Van Loon
4966300c96
Update spectests to v1.1.0-beta.1 from hf1 branch ( #9403 )
...
* Update spectests to v1.1.0-beta.1 from hf1 branch
* fix params loading
2021-08-17 21:23:38 +00:00
Raul Jordan
bdb09ca9ea
V1Alpha1 gRPC Gateway End-to-End Test Evaluators ( #9375 )
...
* add in initial evaluator for gateway v1alpha1
* add gazelle
* build
* compare
* functional options and tool for local verification
* chain head response compare base64
* compare validators request
* add validators compare
* more compare
* passing validator comparisons
* compare attestations pool
* compare atts
* begin peers test
* e2e verifiers
* correct port
* renaming
* evaluators
* rem api compare tool
* peer compare tests
* deepsource
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-16 20:31:21 +00:00
terence tsao
b28d65dc34
Add pyrmont hard fork config ( #9394 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-16 19:51:43 +00:00
Preston Van Loon
643e20c50a
p2p: report status failure when no genesis time is set after start ( #9395 )
2021-08-16 19:15:43 +00:00
Radosław Kapka
bb68c591f2
Remove beacon-chain/rpc/eth/v1
directory ( #9392 )
2021-08-16 13:11:25 +02:00
Nishant Das
f8355bb241
Add in Database Support For Altair State ( #9388 )
...
* add in schema
* add in altair state support
* nil check
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-08-16 12:39:52 +08:00
Raul Jordan
8122da6c97
Add Gosec Github Action ( #9332 )
...
* add gosec security scan
* add gosec ignores first batch
* more nosec for exec
* add filepath clean
* more nosec
* file inclusion nosec
* build
* herumi
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-15 15:24:13 +00:00
Radosław Kapka
1936f991eb
Prepare protos for Ethereum API v2.0.0 ( #9384 )
...
* Move proto services to a different package
# Conflicts:
# beacon-chain/rpc/service.go
* fix tests
* goimports
* fix java class name
* without aggregation_bits
* aggregation_bits
* v2 endpoints
* generate new code and define function stubs
* build files
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-08-14 16:41:03 +00:00
Nishant Das
49440c90ba
Add in Database Support For Altair Blocks ( #9387 )
...
* add in schema
* gaz
* fix panic in rpc
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-08-14 15:50:49 +00:00
Nishant Das
47ee6fa17e
Add in Altair Message ID Function ( #9382 )
...
* add in changes
* add method call
* gaz
* rauls review
* rauls review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-08-14 14:36:02 +00:00
Radosław Kapka
de907fc362
Fix java classname in beacon_debug_service.proto
( #9380 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-13 17:59:55 +00:00
Nishant Das
a1c0bee397
Add in Object Mapping For Types ( #9381 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-13 17:28:26 +00:00
Raul Jordan
b42465a7dd
Optimized Slasher Parameters ( #9361 )
...
* add in parameters and helpers files
* add in small set of changes
* build file
* viz
2021-08-13 16:53:04 +00:00
Nishant Das
8fe22422a6
add it in ( #9383 )
2021-08-13 10:53:51 -05:00
Radosław Kapka
f516e71167
Move proto services to a different package ( #9379 )
...
* Move proto services to a different package
# Conflicts:
# beacon-chain/rpc/service.go
* fix tests
* goimports
* fix java class name
2021-08-13 10:55:24 +00:00
Radosław Kapka
ede85c21e2
Clean up v1 protos ( #9377 )
...
* Clean up v1 protos
# Conflicts:
# proto/eth/v1/generated.ssz.go
* A little more cleanup
# Conflicts:
# proto/eth/v1/generated.ssz.go
* fix java class names
2021-08-13 09:12:18 +00:00
Nishant Das
a9f2170657
Update P2PUtils And Parameters From Altair ( #9373 )
...
* add changes
* add p2putils changes
* clean up
* fix build
* remove test
* raul's review
2021-08-13 13:11:11 +08:00
Nishant Das
3a528147a2
Change to Proto Check For Blocks ( #9372 )
...
* check inner objects
* add test in here.
* verify better
2021-08-13 00:35:23 +00:00
Nishant Das
c8cffbbf02
Update Dependencies For Prysm ( #9374 )
...
* update deps
* tidy
2021-08-12 11:07:13 -05:00
Raul Jordan
1f102c256d
Altair Committee Cache Changes ( #9366 )
...
* changes to hf1 caches
* suggested
* Update beacon-chain/cache/sync_subnet_ids.go
* add in proper changes
* committee.go
* committee test and disabled
* nil active balance check
2021-08-12 00:04:40 -05:00
terence tsao
e3492698f8
Core: modified process attestation for Altair ( #9367 )
...
* Add epoch participation and proposer base reward helpers
* Update beacon-chain/core/altair/attestation.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Check length
* Go fmt
* Add process att
* Refactor and tests
* Update attestation.go
* Gazelle
* Under flow error message
* Update beacon-chain/core/altair/attestation.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-11 21:58:25 -05:00
Jim McDonald
5256751e8b
Trim SSE event names. ( #9342 )
...
* Trim SSE event names.
When sending SSE events the event name contains trailing whitespace.
This patch removes the whitespace before processing the event, ensuring
it is easily parsed by clients.
* Separate test.
* Test receiveEvents, not writeEvent.
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-08-11 23:00:39 +00:00
terence tsao
225f9a74f6
Add epoch participation and proposer base reward helpers ( #9356 )
...
* Add epoch participation and proposer base reward helpers
* Update beacon-chain/core/altair/attestation.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Check length
* Go fmt
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-11 20:54:45 +00:00
terence tsao
d77616f705
Fixes Issues Found by Goland IDE Code Inspect ( #9368 )
...
* Ran code inspect
* Update shared/testutil/altair.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-11 20:12:22 +00:00
Raul Jordan
a217d71d08
Sync Protobufs Between Hard Fork Branch and Develop ( #9362 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-11 19:14:49 +00:00
Raul Jordan
efa1f29311
Use Different Golang JWT Library ( #9360 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-11 18:10:53 +00:00
Raul Jordan
136b157d00
Better Slashing Protection Import/Export User Experience ( #9355 )
...
* failure mode if command goes wrong
* improve export
* fix struct orderw
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-11 17:24:24 +00:00
Raul Jordan
c1280867ed
Add Tracing Request Sink to E2E ( #9341 )
...
* add tracing request sink
* fix struct order
* add in base64 encode and gzip
* add encoding and gzip
* tracing sink and replay tool
* post
* replay
* include latest sink and replay tool
* capture the gzout file instead
* rem time sleep
* handle err
* better handling
* add documentation
* changes
* working sync
* working
* added more logging
2021-08-11 15:38:00 +00:00
Nishant Das
0dd7a8b078
Fixes Altair Bug Introduced For State Representation ( #9358 )
...
* add test
* test
* test
2021-08-11 15:02:55 +00:00
terence tsao
41ab27402f
Sync committee subnet cache ( #9350 )
...
* Add sync subnet id cache
* Update BUILD.bazel
* Update BUILD.bazel
* Update beacon-chain/cache/sync_subnet_ids.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Add comments
* add more comments
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: nisdas <nishdas93@gmail.com>
2021-08-11 00:26:20 +00:00
terence tsao
9668ab0fea
Clean up duplicated imports ( #9354 )
2021-08-10 14:55:24 -05:00