Raul Jordan
9edba29f64
Slasher Simulator Code for Testing Optimized Slasher Behavior ( #9695 )
...
* slashing simulator
* add in necessary items for slasher sim
* sim item
* fix up
* fixed build
* rev
* slasher sim in testing
* testonly
* gaz
* gaz
* fix viz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
2021-09-29 02:27:21 +00:00
Nishant Das
0edb3b9e65
Flatten Attestation Packing ( #9683 )
...
* flatten attestation packing
* dedup again
* terence's review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-09-29 01:56:55 +00:00
Preston Van Loon
6c5bf70021
CI: fix remote caching ( #9696 )
2021-09-29 00:18:31 +00:00
Nishant Das
393549ad19
Add in Balance Safety Check ( #9419 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-28 22:19:10 +00:00
terence tsao
8f8ccf11e4
Update head more timely before ( #9651 )
...
* Move update head closer to transition
* Update process_block.go
* Update tests
* Move savePostStateInfo back
* Update process_block.go
* Update process_block_helpers.go
* Minor clean up for better diff
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-28 21:51:11 +00:00
terence tsao
806bcf1d29
Clean up unused types & function comments ( #9691 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-28 21:21:07 +00:00
Raul Jordan
2a2239d937
Detect Slashable Attestations in Optimized Slasher ( #9694 )
...
* detect slashable attestations
* Update beacon-chain/slasher/detect_attestations.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-09-28 20:54:17 +00:00
Preston Van Loon
c94ba40db2
config: ensure config matches altair presets ( #9690 )
...
* config: ensure config matches altair presets
* gofmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2021-09-28 20:02:12 +00:00
Raul Jordan
1816906bc7
Detect Slashable Blocks in Optimized Slasher ( #9693 )
...
* pass
* Update beacon-chain/slasher/detect_blocks.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* Update beacon-chain/slasher/detect_blocks.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-28 19:33:45 +00:00
Radosław Kapka
c32090aae5
Allow sending Altair blocks to /eth/v1/beacon/blocks
( #9685 )
...
* Allow sending Altar blocks to `/eth/v1/beacon/blocks`
* tests
* add documentation
* fix ineffectual assignment
* change type of sync committee bits
* remove unused import
* fix Altair epoch calculation
* compare slot against slot
* do not publicly export E2E constant
* tests for setInitialPublishBlockPostRequest
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-28 19:07:32 +00:00
Raul Jordan
57f965df50
Include Slasher Receiving Methods ( #9692 )
...
* first
* add receive details
* ensure most builds
* add slasherkv changes
* db iface additions
* build
* gaz
* proper todo comment
* terence comments
* sig check
* bad sig checks
* proper lock issue
* fix test
* fix up tests
2021-09-28 18:13:16 +00:00
Radosław Kapka
8a6e2a5c63
Add MIN_SYNC_COMMITTEE_PARTICIPANTS
parameter to config ( #9689 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-09-28 16:54:12 +00:00
Raul Jordan
6d79f61fda
Process Slashings for Newly Optimized Slasher ( #9687 )
...
* add process slashings
* verify sig
* add method
* add test
* add in process slashings functionality
* target state for aggregate
* comment
* Radek comments
2021-09-28 10:27:40 -05:00
Nishant Das
bf2d2cf981
make opt max cover default ( #9684 )
2021-09-28 17:34:29 +08:00
Raul Jordan
f2840c9ffa
Slasher Min/Max Chunk Logic ( #9673 )
...
* slasher chunks code
* slasher chunks code
* avoid using shared
* testing helper
* slasher gaz
* radek comments
* preston feedback
2021-09-28 02:04:32 +00:00
Preston Van Loon
cbb4361c64
Update spectests to v1.1.0 ( #9680 )
...
* Update spectests to v1.1.0
* ignore placeholder fields, fix spec config check
2021-09-28 00:50:06 +00:00
terence tsao
328e3e6caf
Update mainnet_config.go ( #9678 )
2021-09-27 13:39:55 -07:00
Preston Van Loon
ee0a453b7b
core: refactor signing and domain methods from helper to core/signing pkg ( #9520 )
...
* Move domain function and all signing root functions from beacon-chain/core/helpers to beacon-chain/core
* @terencechain suggestion to put these methods under core/signing
2021-09-27 16:19:20 +00:00
Radosław Kapka
3e640fe79f
Remove unused Eth1Data-related code from the proposer ( #9670 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-27 14:29:41 +00:00
Radosław Kapka
bf41fd854d
Remove fmt.Println
from committee cache ( #9677 )
2021-09-27 11:18:20 +00:00
Nishant Das
6eb158c16a
Check Head State For New Head Methods ( #9676 )
...
* check head state
* add tests
2021-09-27 08:27:11 +00:00
terence tsao
376d248c22
Add in progress handler to committee cache ( #9664 )
...
* Add in progress handler for committee cache
* Remove debug print
* Update validators.go
* Fix all the tests
* More tests
* Update committee_disabled.go
* Update committee_disabled.go
* Update testing util
* Update main.go
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-09-26 23:27:57 +08:00
Nishant Das
6e4c2b4b20
Wrap Gossip Validators With Error ( #9660 )
2021-09-25 18:06:48 -07:00
Raul Jordan
75936853af
Optimized Slasher Docs and Helpers ( #9578 )
...
* bring over helpers
* slasher helpers pass tests
* fix dead link
* rem eth2
* gaz
* params
* gaz
* builds
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-09-24 13:38:13 -05:00
terence tsao
ea9ceeff03
Various clean up before v2 ( #9672 )
...
* Update package names
* Various clean up
* Gazelle
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-24 17:42:16 +00:00
Radosław Kapka
78ea402d9d
Correct the semantics of startEpoch
calculation in registerSyncSubnet
( #9671 )
2021-09-24 16:02:55 +00:00
Radosław Kapka
fae806c73e
Small changes in API Middleware ( #9666 )
...
* Small changes in API Middleware's custom hooks
* reorder fields in `Endpoint`
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-24 14:34:19 +00:00
Radosław Kapka
45510fafea
Fix error handing for block v2 endpoints ( #9667 )
...
* Fix error handing for block v2 endpoints
* rename helper func
2021-09-24 13:52:00 +00:00
Radosław Kapka
12480e12b2
Add flags for disabling selected API ( #9606 )
...
* Add flags for disabling selected API
* tests
* build file
* Use comma-separated modules
* test fix
* fix gateway tests
* fix import in flag tests
2021-09-24 09:25:42 +00:00
Radosław Kapka
7dd99de69f
Restructure API Middleware ( #9663 )
...
* Restructure API Middleware
* fix package name in tests
* build file
* gzl
* fix one more test
2021-09-23 20:41:04 +00:00
Raul Jordan
a9a4bb9163
Move Shared/Testutil into Testing ( #9659 )
...
* move testutil
* util pkg
* build
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 18:53:46 +00:00
Radosław Kapka
2952bb3570
Increase debug gRPC message size to 128MB ( #9661 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 18:31:24 +00:00
Radosław Kapka
1fbe05292f
Fix SubmitPoolSyncCommitteeSignatures
API endpoint ( #9646 )
...
* Fix `SubmitPoolSyncCommitteeSignatures` API endpoint
* fix test
* fix another test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 18:01:07 +00:00
Radosław Kapka
36b1f322c0
Various bug fixes in Eth API ( #9649 )
...
* fix block structure
* correct status code when block is not found
* make `/internal` work with events and SSZ
* test fix
* better block serialize tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 17:34:11 +00:00
Nishant Das
5225d97fd4
Remove Update Timely Feature Config ( #9655 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 17:04:40 +00:00
Nishant Das
57b7bf6ea0
Update Mainnet Bootnodes ( #9656 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 16:23:01 +00:00
Raul Jordan
29513c804c
Create Encoding Bytesutil ( #9658 )
...
* bytesutil
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 15:23:37 +00:00
Nishant Das
b9ad81db50
bump it up ( #9657 )
2021-09-23 09:20:19 -05:00
Nishant Das
d694a775d7
Check For Blocks In Our Initial Sync Cache ( #9558 )
...
* add change
* test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-09-23 05:18:19 +00:00
Nishant Das
4f3762f1f7
Clean Up V2 BeaconState ( #9648 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-09-23 01:10:25 +00:00
terence tsao
8678610683
Update package name comments ( #9653 )
2021-09-22 22:38:06 +00:00
Radosław Kapka
8d4cdde07e
Clean up code in Eth API ( #9650 )
...
* typo fix
* code cleanup
* fix spans
* move state convertion to migration package
* add migration package to v1 visibility
2021-09-22 17:59:06 +00:00
Raul Jordan
191bce3655
Add True Eth2 Deposit Contract, Bytecode, ABI ( #9637 )
...
* solidity contract, abi, and deposit util
* gaz
* gaz
* drain contract remove
* build
* fix up deploy
* add readme
* fix e2e
* revert
* revert flag
* fix
* revert test flag
* fix broken test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-22 17:27:13 +00:00
terence tsao
f52f737d2b
Review Altair core epoch files with changes ( #9556 )
...
* Clean up core epoch for Altair
* Update BUILD.bazel
* Remove check for spec test
* Update validators_test.go
* Update validators_test.go
* Update beacon-chain/core/altair/epoch_precompute.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/core/altair/epoch_precompute_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/core/altair/epoch_spec.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
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-09-22 15:07:05 +00:00
Preston Van Loon
2cbe10c701
Fix long running e2e altair exception for previous release ( #9645 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-22 04:01:43 +00:00
Preston Van Loon
36a7575437
e2e: fix trace_sync http handler registration ( #9644 )
...
* Avoid a global http server so that multiple test runs aren't registering global http handlers and causing a panic
* gofmt
2021-09-22 03:34:09 +00:00
terence tsao
8e3e6d0156
Fix package comment typo ( #9641 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-21 20:25:12 +00:00
Raul Jordan
f3d6dbcc1e
Move Shared/Params Into Config/Params ( #9642 )
...
* config params into pkg
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-21 19:59:25 +00:00
Radosław Kapka
26893bcb8c
Production version of Altair Eth APIs ( #9640 )
...
* internal prefix in proto services
* half-baked inmplementation
* rename v1 to eth
* use router and remove old flag
* uncomment cors
* update v2 methods in proto services
* move adding path prefix after param processing
* remove unneeded code
* remove flag
* fix e2e
* uncomment sync committee e2e
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-09-21 19:20:57 +00:00
Raul Jordan
eebcd52ee6
Miscellaneous Packages from Shared Into Proper Folders ( #9638 )
...
* slashutil
* builds
* interop
* viz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-21 18:11:16 +00:00